Added ElevantedCard in mood Page
parent
a5cd12d5cd
commit
aabdaafadc
|
@ -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/submit_form_button.dart';
|
||||||
import 'package:smoke_cess_app/widgets/text_formfield.dart';
|
import 'package:smoke_cess_app/widgets/text_formfield.dart';
|
||||||
|
|
||||||
|
import 'elevated_card.dart';
|
||||||
|
|
||||||
class MoodForm extends StatefulWidget {
|
class MoodForm extends StatefulWidget {
|
||||||
const MoodForm({super.key});
|
const MoodForm({super.key});
|
||||||
|
|
||||||
|
@ -12,7 +14,7 @@ class MoodForm extends StatefulWidget {
|
||||||
|
|
||||||
class _MoodFormState extends State<MoodForm> {
|
class _MoodFormState extends State<MoodForm> {
|
||||||
final GlobalKey<FormState> _moodFormKey = GlobalKey<FormState>();
|
final GlobalKey<FormState> _moodFormKey = GlobalKey<FormState>();
|
||||||
MySlider slider = const MySlider('Bewerte deine Stimmung');
|
MySlider slider = const MySlider('');
|
||||||
String _textInput = "";
|
String _textInput = "";
|
||||||
|
|
||||||
void submitForm() {
|
void submitForm() {
|
||||||
|
@ -34,8 +36,16 @@ class _MoodFormState extends State<MoodForm> {
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
slider,
|
ElevatedCard(
|
||||||
MyTextFormField('Beschreibe deine Stimmung', onFormFieldSave),
|
title: 'Stimmungsbewertung',
|
||||||
|
child: slider,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 16),
|
||||||
|
ElevatedCard(
|
||||||
|
title: 'Beschreibe deine Stimmung',
|
||||||
|
child:
|
||||||
|
MyTextFormField('Beschreibe deine Stimmung', onFormFieldSave),
|
||||||
|
),
|
||||||
SubmitFormButton(submitForm)
|
SubmitFormButton(submitForm)
|
||||||
],
|
],
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in New Issue