layouting
parent
646a97926d
commit
68033a64a5
|
@ -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'),
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue