fix datetpicker wip
This commit is contained in:
@@ -18,6 +18,7 @@ import '../classes/events.dart';
|
||||
import 'ListItemMenu.dart';
|
||||
import 'MapboxPages.dart';
|
||||
import 'ListItemByOrganizers.dart';
|
||||
import 'EditEvent.dart';
|
||||
|
||||
void main() {
|
||||
initializeDateFormatting("fr_FR", null).then((_) => (const MyApp()));
|
||||
@@ -76,6 +77,8 @@ class _ItemMenuState extends State<ItemMenu> with ShowErrorDialog {
|
||||
List<String> tags = [];
|
||||
List<String> organizers = [];
|
||||
|
||||
String id = "";
|
||||
|
||||
Events? events;
|
||||
@override
|
||||
void initState() {
|
||||
@@ -104,6 +107,7 @@ class _ItemMenuState extends State<ItemMenu> with ShowErrorDialog {
|
||||
if (responseGet.statusCode == 200) {
|
||||
stderr.writeln('Username : ${responseGet.body}');
|
||||
var events = jsonDecode(utf8.decode(responseGet.bodyBytes));
|
||||
id = events["id"];
|
||||
formerName = events["name"];
|
||||
formerMap = "${events["place"]}";
|
||||
formerDesc = events["description"];
|
||||
@@ -397,7 +401,12 @@ class _ItemMenuState extends State<ItemMenu> with ShowErrorDialog {
|
||||
),
|
||||
),
|
||||
floatingActionButton: FloatingActionButton(
|
||||
onPressed: () {},
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (_) => EditEvent(id: id)),
|
||||
);
|
||||
},
|
||||
backgroundColor: Colors.blue,
|
||||
tooltip: 'Recherche',
|
||||
child: const Icon(Icons.edit, color: Colors.white),
|
||||
|
Reference in New Issue
Block a user