From aabdaafadcb4174a5f5d5c47e586eff932d481db Mon Sep 17 00:00:00 2001 From: Parricc35 <63447810+Parricc35@users.noreply.github.com> Date: Tue, 21 Feb 2023 20:56:10 +0100 Subject: [PATCH] Added ElevantedCard in mood Page --- lib/widgets/mood_form.dart | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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) ], ));