From af40b847d2651b135352c1724405af5da0ca15d8 Mon Sep 17 00:00:00 2001 From: Parricc35 <63447810+Parricc35@users.noreply.github.com> Date: Tue, 21 Feb 2023 00:02:32 +0100 Subject: [PATCH] wip --- lib/widgets/timepicker.dart | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/lib/widgets/timepicker.dart b/lib/widgets/timepicker.dart index 8e61321..ce93bfb 100644 --- a/lib/widgets/timepicker.dart +++ b/lib/widgets/timepicker.dart @@ -43,36 +43,6 @@ class TimePickerState extends State { }); }, child: const Text('Zeit einstellen')) - widget.descriptionText, - style: const TextStyle(fontSize: 12), - ), - Row(mainAxisAlignment: MainAxisAlignment.center, children: [ - Text( - '${widget._initialTime.hour.toString().padLeft(2, '0')}:${widget._initialTime.minute.toString().padLeft(2, '0')}', - style: const TextStyle(fontSize: 22), - ), - const SizedBox(width: 16), - ElevatedButton( - onPressed: () async { - //TODO auslagern - TimeOfDay? newTime = await showTimePicker( - context: context, - initialTime: widget._initialTime, - builder: (context, child) { - return MediaQuery( - data: MediaQuery.of(context) - .copyWith(alwaysUse24HourFormat: true), - child: child!, - ); - }, - ); - if (newTime == null) return; - setState(() { - widget._initialTime = newTime; - }); - }, - child: const Text('Zeit einstellen')) - ]) ]), ); }