From 68033a64a5d9b6c3c9f57f5cc28dc9b795d1c802 Mon Sep 17 00:00:00 2001 From: Crondung <1922635@stud.hs-mannheim.de> Date: Sun, 26 Feb 2023 17:09:25 +0100 Subject: [PATCH] layouting --- lib/widgets/mood_form.dart | 5 ++++- lib/widgets/sleep_form.dart | 1 - lib/widgets/timepicker.dart | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/widgets/mood_form.dart b/lib/widgets/mood_form.dart index 9ca1f30..0f73c79 100644 --- a/lib/widgets/mood_form.dart +++ b/lib/widgets/mood_form.dart @@ -22,7 +22,7 @@ class MoodForm extends StatelessWidget { return Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - ElevatedCard( + const ElevatedCard( title: 'Stimmungsbewertung', child: MySlider(), ), @@ -31,6 +31,9 @@ class MoodForm extends StatelessWidget { title: 'Beschreibe deine Stimmung', child: MyTextFormField('Beschreibe deine Stimmung'), ), + const SizedBox( + height: 80, + ), ElevatedButton( onPressed: () => inputModel.saveMood(), child: const Text('Speichern'), diff --git a/lib/widgets/sleep_form.dart b/lib/widgets/sleep_form.dart index 98d35db..5cb7352 100644 --- a/lib/widgets/sleep_form.dart +++ b/lib/widgets/sleep_form.dart @@ -18,7 +18,6 @@ class SleepForm extends StatelessWidget { return Column( mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.stretch, children: [ ElevatedCard( title: 'Einschlafzeit', diff --git a/lib/widgets/timepicker.dart b/lib/widgets/timepicker.dart index 19fd528..0b0926b 100644 --- a/lib/widgets/timepicker.dart +++ b/lib/widgets/timepicker.dart @@ -20,7 +20,6 @@ class TimePicker extends StatelessWidget { const SizedBox(width: 16), ElevatedButton( onPressed: () async { - //TODO auslagern TimeOfDay? newTime = await showTimePicker( context: context, initialTime: inputModel.getTimeEntry(keyMap),