diff --git a/lib/widgets/mood_form.dart b/lib/widgets/mood_form.dart index 23ea2b7..a5c059f 100644 --- a/lib/widgets/mood_form.dart +++ b/lib/widgets/mood_form.dart @@ -3,6 +3,8 @@ import 'package:smoke_cess_app/widgets/slider.dart'; import 'package:smoke_cess_app/widgets/submit_form_button.dart'; import 'package:smoke_cess_app/widgets/text_formfield.dart'; +import 'elevated_card.dart'; + class MoodForm extends StatefulWidget { const MoodForm({super.key}); @@ -12,7 +14,7 @@ class MoodForm extends StatefulWidget { class _MoodFormState extends State { final GlobalKey _moodFormKey = GlobalKey(); - MySlider slider = const MySlider('Bewerte deine Stimmung'); + MySlider slider = const MySlider(''); String _textInput = ""; void submitForm() { @@ -34,8 +36,16 @@ class _MoodFormState extends State { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - slider, - MyTextFormField('Beschreibe deine Stimmung', onFormFieldSave), + ElevatedCard( + title: 'Stimmungsbewertung', + child: slider, + ), + const SizedBox(height: 16), + ElevatedCard( + title: 'Beschreibe deine Stimmung', + child: + MyTextFormField('Beschreibe deine Stimmung', onFormFieldSave), + ), SubmitFormButton(submitForm) ], ));