From b2b142ae71b799e1f589c02ce6fd59a587a20d04 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Wed, 14 Aug 2024 23:20:31 +0200 Subject: [PATCH] add end input date and time --- covas_mobile/lib/pages/UpdateEventImage.dart | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/covas_mobile/lib/pages/UpdateEventImage.dart b/covas_mobile/lib/pages/UpdateEventImage.dart index 3f242a5..8868464 100644 --- a/covas_mobile/lib/pages/UpdateEventImage.dart +++ b/covas_mobile/lib/pages/UpdateEventImage.dart @@ -45,6 +45,8 @@ class _UpdateeventImageState extends State TextEditingController inputDate = TextEditingController(); TextEditingController startDatepicker = TextEditingController(); TextEditingController startTimepicker = TextEditingController(); + TextEditingController endDatepicker = TextEditingController(); + TextEditingController endTimepicker = TextEditingController(); onTapFunctionDatePicker({required BuildContext context}) async { DateTime? pickedDate = await showDatePicker( @@ -228,6 +230,32 @@ class _UpdateeventImageState extends State hintText: 'Cliquez ici pour selectionner une heure'), onTap: () => onTapFunctionTimePicker(context: context)), ), + Padding( + padding: const EdgeInsets.only( + left: 15.0, right: 15.0, top: 15, bottom: 0), + //padding: EdgeInsets.symmetric(horizontal: 15), + child: TextField( + controller: endDatepicker, + readOnly: true, + decoration: InputDecoration( + border: OutlineInputBorder(), + labelText: 'Date de fin de l\'évènement', + hintText: 'Cliquez ici pour selectionner une date'), + onTap: () => onTapFunctionDatePicker(context: context)), + ), + Padding( + padding: const EdgeInsets.only( + left: 15.0, right: 15.0, top: 15, bottom: 0), + //padding: EdgeInsets.symmetric(horizontal: 15), + child: TextField( + controller: endTimepicker, + readOnly: true, + decoration: InputDecoration( + border: OutlineInputBorder(), + labelText: 'Heure de fin de l\'évènement', + hintText: 'Cliquez ici pour selectionner une heure'), + onTap: () => onTapFunctionTimePicker(context: context)), + ), SizedBox( height: 30, ),