try tags organizers
This commit is contained in:
parent
ac566053b1
commit
b8e6adf2e8
@ -1,5 +1,3 @@
|
|||||||
import 'dart:ffi';
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
@ -9,7 +7,6 @@ import 'package:textfield_tags/textfield_tags.dart';
|
|||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'dart:typed_data';
|
|
||||||
|
|
||||||
import 'ItemMenu.dart';
|
import 'ItemMenu.dart';
|
||||||
import '../classes/alert.dart';
|
import '../classes/alert.dart';
|
||||||
@ -170,17 +167,11 @@ class _EditEventState extends State<EditEvent>
|
|||||||
formerName = convertNulltoEmptyString(events["name"]);
|
formerName = convertNulltoEmptyString(events["name"]);
|
||||||
formerMap = convertNulltoEmptyString(events["place"]);
|
formerMap = convertNulltoEmptyString(events["place"]);
|
||||||
formerDesc = convertNulltoEmptyString(events["description"]);
|
formerDesc = convertNulltoEmptyString(events["description"]);
|
||||||
formerTags = List<String>.from(events['tags'] as List);
|
|
||||||
formerOrga = List<String>.from(events['organizers'] as List);
|
|
||||||
startDate = DateTime.parse(events["start_date"]);
|
startDate = DateTime.parse(events["start_date"]);
|
||||||
//dateS = DateFormat.yMd().format(startDate);
|
|
||||||
//print("startdate : ${dateS}");
|
|
||||||
//timeS = DateFormat.Hm().format(startDate);
|
|
||||||
|
|
||||||
endDate = DateTime.parse(events["end_date"]);
|
endDate = DateTime.parse(events["end_date"]);
|
||||||
|
|
||||||
//dateE = DateFormat.yMd().format(endDate);
|
|
||||||
//timeE = DateFormat.Hm().format(endDate);
|
|
||||||
if (events["imgUrl"] != null) {
|
if (events["imgUrl"] != null) {
|
||||||
formerImage = events["imgUrl"];
|
formerImage = events["imgUrl"];
|
||||||
}
|
}
|
||||||
@ -241,11 +232,15 @@ class _EditEventState extends State<EditEvent>
|
|||||||
startTimepicker.text = DateFormat("HH:mm").format(startDate).toString();
|
startTimepicker.text = DateFormat("HH:mm").format(startDate).toString();
|
||||||
endDatepicker.text = DateFormat("dd/MM/yyyy").format(endDate).toString();
|
endDatepicker.text = DateFormat("dd/MM/yyyy").format(endDate).toString();
|
||||||
endTimepicker.text = DateFormat("HH:mm").format(endDate).toString();
|
endTimepicker.text = DateFormat("HH:mm").format(endDate).toString();
|
||||||
initialOrga = formerOrga;
|
|
||||||
inputGeo.text = formerMap;
|
inputGeo.text = formerMap;
|
||||||
imgUrl = formerImage;
|
imgUrl = formerImage;
|
||||||
inputDesc.text = formerDesc;
|
inputDesc.text = formerDesc;
|
||||||
initialTags = formerTags;
|
for (int i = 0; i < events["tags"].length; i++) {
|
||||||
|
_stringTagController.addTag(events["tags"][i]);
|
||||||
|
}
|
||||||
|
for (int i = 0; i < events["organizers"].length; i++) {
|
||||||
|
_stringOrgaController.addTag(events["organizers"][i]);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user