layouting

main
Julian Gegner 2023-02-26 17:09:25 +01:00
parent 646a97926d
commit 68033a64a5
3 changed files with 4 additions and 3 deletions

View File

@ -22,7 +22,7 @@ class MoodForm extends StatelessWidget {
return Column( return Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
ElevatedCard( const ElevatedCard(
title: 'Stimmungsbewertung', title: 'Stimmungsbewertung',
child: MySlider(), child: MySlider(),
), ),
@ -31,6 +31,9 @@ class MoodForm extends StatelessWidget {
title: 'Beschreibe deine Stimmung', title: 'Beschreibe deine Stimmung',
child: MyTextFormField('Beschreibe deine Stimmung'), child: MyTextFormField('Beschreibe deine Stimmung'),
), ),
const SizedBox(
height: 80,
),
ElevatedButton( ElevatedButton(
onPressed: () => inputModel.saveMood(), onPressed: () => inputModel.saveMood(),
child: const Text('Speichern'), child: const Text('Speichern'),

View File

@ -18,7 +18,6 @@ class SleepForm extends StatelessWidget {
return Column( return Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
ElevatedCard( ElevatedCard(
title: 'Einschlafzeit', title: 'Einschlafzeit',

View File

@ -20,7 +20,6 @@ class TimePicker extends StatelessWidget {
const SizedBox(width: 16), const SizedBox(width: 16),
ElevatedButton( ElevatedButton(
onPressed: () async { onPressed: () async {
//TODO auslagern
TimeOfDay? newTime = await showTimePicker( TimeOfDay? newTime = await showTimePicker(
context: context, context: context,
initialTime: inputModel.getTimeEntry(keyMap), initialTime: inputModel.getTimeEntry(keyMap),