From 4b24d16387ec163159f8b091f45c01aadecdad4f Mon Sep 17 00:00:00 2001 From: Jonas Braus Date: Sun, 24 Nov 2024 22:09:11 +0100 Subject: [PATCH] Bug Fix for Bug Fix --- lib/pages/pageAmbiente.dart | 144 +++++++-------- lib/pages/pageAnmerkungen.dart | 167 ++++++++--------- lib/pages/pageEssen.dart | 221 +++++++++++----------- lib/pages/pageService.dart | 144 +++++++-------- lib/pages/pageSpezielleErnaehrung.dart | 242 +++++++++---------------- 5 files changed, 434 insertions(+), 484 deletions(-) diff --git a/lib/pages/pageAmbiente.dart b/lib/pages/pageAmbiente.dart index 886645d..85039f8 100644 --- a/lib/pages/pageAmbiente.dart +++ b/lib/pages/pageAmbiente.dart @@ -25,78 +25,80 @@ class PageAmbiente extends StatelessWidget { ), ), Center( - child: Container( - decoration: BoxDecoration( - color: Colors.white.withOpacity(0.8), - borderRadius: BorderRadius.only( - topLeft: Radius.circular(80), - bottomRight: Radius.circular(80) - ) - ), - width: 600, - height: 400, - padding: EdgeInsets.symmetric(horizontal: 20), - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - const Text( - "Frage1*", - style: TextStyle(fontSize: 35), - ), - Consumer( - builder: (context, essenProvider, child) { - return RatingStars(onRate: (value) { - essenProvider.setRatingFrage1(value); - }, initRating: essenProvider.ratingFrage1,); - }, - ) - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - const Text( - "Frage2*", - style: TextStyle(fontSize: 35), - ), - Consumer( - builder: (context, essenProvider, child) { - return RatingStars(onRate: (value) { - essenProvider.setRatingFrage2(value); - }, initRating: essenProvider.ratingFrage2,); - }, - ) - ], - ), - const SizedBox( - height: 50, - ), - Consumer( - builder: (context, essenProvider, child) { - return TextFormField( - initialValue: essenProvider.freiText, - onChanged: (value) { - essenProvider.setFreiText(value); - }, - autofocus: false, - maxLength: 500, - maxLines: 4, - decoration: InputDecoration( - labelText: "Dein Feedback (optional)", - labelStyle: const TextStyle(fontSize: 20), - border: OutlineInputBorder( - borderRadius: BorderRadius.circular(15) - ), + child: SingleChildScrollView( + child: Container( + decoration: BoxDecoration( + color: Colors.white.withOpacity(0.8), + borderRadius: BorderRadius.only( + topLeft: Radius.circular(80), + bottomRight: Radius.circular(80) + ) + ), + width: 600, + height: 400, + padding: EdgeInsets.symmetric(horizontal: 20), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text( + "Frage1*", + style: TextStyle(fontSize: 35), ), - style: TextStyle(fontSize: 20), - ); - }, - ) - ], + Consumer( + builder: (context, essenProvider, child) { + return RatingStars(onRate: (value) { + essenProvider.setRatingFrage1(value); + }, initRating: essenProvider.ratingFrage1,); + }, + ) + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text( + "Frage2*", + style: TextStyle(fontSize: 35), + ), + Consumer( + builder: (context, essenProvider, child) { + return RatingStars(onRate: (value) { + essenProvider.setRatingFrage2(value); + }, initRating: essenProvider.ratingFrage2,); + }, + ) + ], + ), + const SizedBox( + height: 50, + ), + Consumer( + builder: (context, essenProvider, child) { + return TextFormField( + initialValue: essenProvider.freiText, + onChanged: (value) { + essenProvider.setFreiText(value); + }, + autofocus: false, + maxLength: 500, + maxLines: 4, + decoration: InputDecoration( + labelText: "Dein Feedback (optional)", + labelStyle: const TextStyle(fontSize: 20), + border: OutlineInputBorder( + borderRadius: BorderRadius.circular(15) + ), + ), + style: TextStyle(fontSize: 20), + ); + }, + ) + ], + ), ), ), ) diff --git a/lib/pages/pageAnmerkungen.dart b/lib/pages/pageAnmerkungen.dart index 6460322..6b65a13 100644 --- a/lib/pages/pageAnmerkungen.dart +++ b/lib/pages/pageAnmerkungen.dart @@ -17,91 +17,94 @@ class PageAnmerkungen extends StatelessWidget { height: 800, decoration: BoxDecoration( image: DecorationImage( - image: AssetImage("assets/backgrounds/Anmerkungen.jpg"), - fit: BoxFit.cover, - colorFilter: ColorFilter.mode( - Colors.white.withOpacity(0.2), - BlendMode.dstATop - ), - ) - ), + image: AssetImage("assets/backgrounds/Anmerkungen.jpg"), + fit: BoxFit.cover, + colorFilter: ColorFilter.mode( + Colors.white.withOpacity(0.2), BlendMode.dstATop), + )), ), - Center( - child: Container( - decoration: BoxDecoration( - color: Colors.white.withOpacity(0.8), - borderRadius: BorderRadius.only( - topLeft: Radius.circular(80), - bottomRight: Radius.circular(80) - ) - ), - padding: EdgeInsets.symmetric(horizontal: 20), - height: 400, - width: 600, - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - const Text( - "Frage1*", - style: TextStyle(fontSize: 35), - ), - Consumer( - builder: (context, essenProvider, child) { - return RatingStars(onRate: (value) { - essenProvider.setRatingFrage1(value); - }, initRating: essenProvider.ratingFrage1,); - }, - ) - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - const Text( - "Frage2*", - style: TextStyle(fontSize: 35), - ), - Consumer( - builder: (context, essenProvider, child) { - return RatingStars(onRate: (value) { - essenProvider.setRatingFrage2(value); - }, initRating: essenProvider.ratingFrage2,); - }, - ) - ], - ), - const SizedBox( - height: 50, - ), - Consumer( - builder: (context, essenProvider, child) { - return TextFormField( - initialValue: essenProvider.freiText, - onChanged: (value) { - essenProvider.setFreiText(value); - }, - autofocus: false, - maxLength: 500, - maxLines: 4, - decoration: InputDecoration( - labelText: "Dein Feedback (optional)", - labelStyle: const TextStyle(fontSize: 20), - border: OutlineInputBorder( - borderRadius: BorderRadius.circular(15) - ), + Center( + child: SingleChildScrollView( + child: Container( + decoration: BoxDecoration( + color: Colors.white.withOpacity(0.8), + borderRadius: BorderRadius.only( + topLeft: Radius.circular(80), + bottomRight: Radius.circular(80))), + padding: EdgeInsets.symmetric(horizontal: 20), + height: 400, + width: 600, + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text( + "Frage1*", + style: TextStyle(fontSize: 35), ), - style: TextStyle(fontSize: 20), - ); - }, - ) - ], + Consumer( + builder: (context, essenProvider, child) { + return RatingStars( + onRate: (value) { + essenProvider.setRatingFrage1(value); + }, + initRating: essenProvider.ratingFrage1, + ); + }, + ) + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text( + "Frage2*", + style: TextStyle(fontSize: 35), + ), + Consumer( + builder: (context, essenProvider, child) { + return RatingStars( + onRate: (value) { + essenProvider.setRatingFrage2(value); + }, + initRating: essenProvider.ratingFrage2, + ); + }, + ) + ], + ), + const SizedBox( + height: 50, + ), + Consumer( + builder: (context, essenProvider, child) { + return TextFormField( + initialValue: essenProvider.freiText, + onChanged: (value) { + essenProvider.setFreiText(value); + }, + autofocus: false, + maxLength: 500, + maxLines: 4, + decoration: InputDecoration( + labelText: "Dein Feedback (optional)", + labelStyle: const TextStyle(fontSize: 20), + border: OutlineInputBorder( + borderRadius: BorderRadius.circular(15)), + ), + style: TextStyle(fontSize: 20), + ); + }, + ) + ], + ), ), - ), - )], + ), + ) + ], ), ); } diff --git a/lib/pages/pageEssen.dart b/lib/pages/pageEssen.dart index fe94175..9d4720a 100644 --- a/lib/pages/pageEssen.dart +++ b/lib/pages/pageEssen.dart @@ -13,120 +13,125 @@ class PageEssen extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - body: SingleChildScrollView( - child: Stack( - children: [ - // Hintergrundbild - Container( - width: 1600, - height: 750, - decoration: BoxDecoration( - image: DecorationImage( - image: AssetImage("assets/backgrounds/Essen.jpg"), - fit: BoxFit.cover, // Deckt den gesamten Bildschirm ab - colorFilter: ColorFilter.mode( - Colors.white.withOpacity(0.2), - BlendMode.dstATop, - ), + body: Stack( + children: [ + // Hintergrundbild + Container( + width: 1600, + height: 750, + decoration: BoxDecoration( + image: DecorationImage( + image: AssetImage("assets/backgrounds/Essen.jpg"), + fit: BoxFit.cover, // Deckt den gesamten Bildschirm ab + colorFilter: ColorFilter.mode( + Colors.white.withOpacity(0.2), + BlendMode.dstATop, ), ), ), - // Vordergrundinhalte + ), + // Vordergrundinhalte - Center( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - SizedBox(height: 200,), - Consumer( - builder: (context, pageProvider, child) { - return Text(pageProvider.selectedEssenName, style: const TextStyle(fontSize: 40),); - }, - ), - const SizedBox(height: 30,), - Container( - decoration: BoxDecoration( - color: Colors.white.withOpacity(0.8), - borderRadius: const BorderRadius.only( - topLeft: Radius.circular(80), - bottomRight: Radius.circular(80))), - height: 400, - width: 600, - padding: EdgeInsets.symmetric(horizontal: 20), - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - const Text( - "Geschmack*", - style: TextStyle(fontSize: 35), - ), - Consumer( - builder: (context, essenProvider, child) { - return RatingStars( - onRate: (value) { - essenProvider.setRatingGeschmack(value); - }, - initRating: essenProvider.ratingGeschmack, - ); - }, - ) - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - const Text( - "Qualität*", - style: TextStyle(fontSize: 35), - ), - Consumer( - builder: (context, essenProvider, child) { - return RatingStars( - onRate: (value) { - essenProvider.setRatingQuali(value); - }, - initRating: essenProvider.ratingQuali, - ); - }, - ) - ], - ), - const SizedBox( - height: 50, - ), - Consumer( - builder: (context, essenProvider, child) { - return TextFormField( - initialValue: essenProvider.freiText, - onChanged: (value) { - essenProvider.setFreiText(value); - }, - autofocus: false, - maxLength: 500, - maxLines: 4, - decoration: InputDecoration( - labelText: "Dein Feedback (optional)", - labelStyle: const TextStyle(fontSize: 20), - border: OutlineInputBorder( - borderRadius: BorderRadius.circular(15), - ), + Center( + child: SingleChildScrollView( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Consumer( + builder: (context, pageProvider, child) { + return Text( + pageProvider.selectedEssenName, + style: const TextStyle(fontSize: 40), + ); + }, + ), + const SizedBox( + height: 30, + ), + Container( + decoration: BoxDecoration( + color: Colors.white.withOpacity(0.8), + borderRadius: const BorderRadius.only( + topLeft: Radius.circular(80), + bottomRight: Radius.circular(80))), + height: 400, + width: 600, + padding: EdgeInsets.symmetric(horizontal: 20), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text( + "Geschmack*", + style: TextStyle(fontSize: 35), + ), + Consumer( + builder: (context, essenProvider, child) { + return RatingStars( + onRate: (value) { + essenProvider.setRatingGeschmack(value); + }, + initRating: essenProvider.ratingGeschmack, + ); + }, + ) + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text( + "Qualität*", + style: TextStyle(fontSize: 35), + ), + Consumer( + builder: (context, essenProvider, child) { + return RatingStars( + onRate: (value) { + essenProvider.setRatingQuali(value); + }, + initRating: essenProvider.ratingQuali, + ); + }, + ) + ], + ), + const SizedBox( + height: 50, + ), + Consumer( + builder: (context, essenProvider, child) { + return TextFormField( + initialValue: essenProvider.freiText, + onChanged: (value) { + essenProvider.setFreiText(value); + }, + autofocus: false, + maxLength: 500, + maxLines: 4, + decoration: InputDecoration( + labelText: "Dein Feedback (optional)", + labelStyle: const TextStyle(fontSize: 20), + border: OutlineInputBorder( + borderRadius: BorderRadius.circular(15), ), - style: TextStyle(fontSize: 20), - ); - }, - ), - ], - ), + ), + style: TextStyle(fontSize: 20), + ); + }, + ), + ], ), - ], - )), - ], - ), - ) + ), + ], + ), + ), + ), + ], + ), ); } } diff --git a/lib/pages/pageService.dart b/lib/pages/pageService.dart index 857b896..bcf89da 100644 --- a/lib/pages/pageService.dart +++ b/lib/pages/pageService.dart @@ -27,78 +27,80 @@ class PageService extends StatelessWidget { ), ), Center( - child: Container( - decoration: BoxDecoration( - color: Colors.white.withOpacity(0.8), - borderRadius: BorderRadius.only( - topLeft: Radius.circular(80), - bottomRight: Radius.circular(80) - ) - ), - width: 600, - height: 400, - padding: EdgeInsets.symmetric(horizontal: 20), - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - const Text( - "Frage1*", - style: TextStyle(fontSize: 35), - ), - Consumer( - builder: (context, essenProvider, child) { - return RatingStars(onRate: (value) { - essenProvider.setRatingFrage1(value); - }, initRating: essenProvider.ratingFrage1,); - }, - ) - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - const Text( - "Frage2*", - style: TextStyle(fontSize: 35), - ), - Consumer( - builder: (context, essenProvider, child) { - return RatingStars(onRate: (value) { - essenProvider.setRatingFrage2(value); - }, initRating: essenProvider.ratingFrage2,); - }, - ) - ], - ), - const SizedBox( - height: 50, - ), - Consumer( - builder: (context, essenProvider, child) { - return TextFormField( - initialValue: essenProvider.freiText, - onChanged: (value) { - essenProvider.setFreiText(value); - }, - autofocus: false, - maxLength: 500, - maxLines: 4, - decoration: InputDecoration( - labelText: "Dein Feedback (optional)", - labelStyle: const TextStyle(fontSize: 20), - border: OutlineInputBorder( - borderRadius: BorderRadius.circular(15) - ), + child: SingleChildScrollView( + child: Container( + decoration: BoxDecoration( + color: Colors.white.withOpacity(0.8), + borderRadius: BorderRadius.only( + topLeft: Radius.circular(80), + bottomRight: Radius.circular(80) + ) + ), + width: 600, + height: 400, + padding: EdgeInsets.symmetric(horizontal: 20), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text( + "Frage1*", + style: TextStyle(fontSize: 35), ), - style: TextStyle(fontSize: 20), - ); - }, - ) - ], + Consumer( + builder: (context, essenProvider, child) { + return RatingStars(onRate: (value) { + essenProvider.setRatingFrage1(value); + }, initRating: essenProvider.ratingFrage1,); + }, + ) + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text( + "Frage2*", + style: TextStyle(fontSize: 35), + ), + Consumer( + builder: (context, essenProvider, child) { + return RatingStars(onRate: (value) { + essenProvider.setRatingFrage2(value); + }, initRating: essenProvider.ratingFrage2,); + }, + ) + ], + ), + const SizedBox( + height: 50, + ), + Consumer( + builder: (context, essenProvider, child) { + return TextFormField( + initialValue: essenProvider.freiText, + onChanged: (value) { + essenProvider.setFreiText(value); + }, + autofocus: false, + maxLength: 500, + maxLines: 4, + decoration: InputDecoration( + labelText: "Dein Feedback (optional)", + labelStyle: const TextStyle(fontSize: 20), + border: OutlineInputBorder( + borderRadius: BorderRadius.circular(15) + ), + ), + style: TextStyle(fontSize: 20), + ); + }, + ) + ], + ), ), ), ) diff --git a/lib/pages/pageSpezielleErnaehrung.dart b/lib/pages/pageSpezielleErnaehrung.dart index 801d156..816c94a 100644 --- a/lib/pages/pageSpezielleErnaehrung.dart +++ b/lib/pages/pageSpezielleErnaehrung.dart @@ -19,162 +19,100 @@ class PageSpezielleErnaehrung extends StatelessWidget { height: 750, decoration: BoxDecoration( image: DecorationImage( - image: AssetImage("assets/backgrounds/Speziell.jpg"), - fit: BoxFit.cover, - colorFilter: ColorFilter.mode( - Colors.white.withOpacity(0.2), - BlendMode.dstATop - ), - ) - ), + image: AssetImage("assets/backgrounds/Speziell.jpg"), + fit: BoxFit.cover, + colorFilter: ColorFilter.mode( + Colors.white.withOpacity(0.2), BlendMode.dstATop), + )), ), Center( - child: Container( - decoration: BoxDecoration( - color: Colors.white.withOpacity(0.8), - borderRadius: BorderRadius.only( - topLeft: Radius.circular(80), - bottomRight: Radius.circular(80) - ) - ), - width: 650, - height: 450, - padding: EdgeInsets.symmetric(horizontal: 20), - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - const Text( - "Vegan?*", - style: TextStyle(fontSize: 35), - ), - Consumer( - builder: (context, spezielleErnaehrungProvider, child) { - return RatingStars(onRate: (value) { - spezielleErnaehrungProvider.setRatingSitzmoeglichkeit(value); - }, initRating: spezielleErnaehrungProvider.ratingSitzmoeglichkeit,); - }, - ) - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - const Text( - "Keine Ahnung*", - style: TextStyle(fontSize: 35), - ), - Consumer( - builder: (context, spezielleErnaehrungProvider, child) { - return RatingStars(onRate: (value) { - spezielleErnaehrungProvider.setRatingKeineAhnung(value); - }, initRating: spezielleErnaehrungProvider.ratingKeineAhnung,); - }, - ), - - ], - ), - const SizedBox( - height: 50, - ), - Consumer( - builder: (context, spezielleErnaehrungProvider, child) { - return TextFormField( - initialValue: spezielleErnaehrungProvider.freiText, - onChanged: (value) { - spezielleErnaehrungProvider.setFreiText(value); - }, - autofocus: false, - maxLength: 500, - maxLines: 5, - decoration: InputDecoration( - labelText: "Dein Feedback (optional)", - labelStyle: const TextStyle(fontSize: 20), - border: OutlineInputBorder( - borderRadius: BorderRadius.circular(15) - ), + child: SingleChildScrollView( + child: Container( + decoration: BoxDecoration( + color: Colors.white.withOpacity(0.8), + borderRadius: BorderRadius.only( + topLeft: Radius.circular(80), + bottomRight: Radius.circular(80))), + width: 650, + height: 450, + padding: EdgeInsets.symmetric(horizontal: 20), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text( + "Vegan?*", + style: TextStyle(fontSize: 35), ), - style: TextStyle(fontSize: 20), - ); - }, - ) - ], - ), - ), - ) - ], - ), - ); - - Center( - child: Container( - width: 800, - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - const Text( - "Vegan?*", - style: TextStyle(fontSize: 35), - ), - Consumer( - builder: (context, spezielleErnaehrungProvider, child) { - return RatingStars(onRate: (value) { - spezielleErnaehrungProvider.setRatingSitzmoeglichkeit(value); - }, initRating: spezielleErnaehrungProvider.ratingSitzmoeglichkeit,); - }, - ) - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - const Text( - "Keine Ahnung*", - style: TextStyle(fontSize: 35), - ), - Consumer( - builder: (context, spezielleErnaehrungProvider, child) { - return RatingStars(onRate: (value) { - spezielleErnaehrungProvider.setRatingKeineAhnung(value); - }, initRating: spezielleErnaehrungProvider.ratingKeineAhnung,); - }, - ), - - ], - ), - const SizedBox( - height: 50, - ), - Consumer( - builder: (context, spezielleErnaehrungProvider, child) { - return TextFormField( - initialValue: spezielleErnaehrungProvider.freiText, - onChanged: (value) { - spezielleErnaehrungProvider.setFreiText(value); - }, - autofocus: false, - maxLength: 500, - maxLines: 5, - decoration: InputDecoration( - labelText: "Dein Feedback (optional)", - labelStyle: const TextStyle(fontSize: 20), - border: OutlineInputBorder( - borderRadius: BorderRadius.circular(15) + Consumer( + builder: + (context, spezielleErnaehrungProvider, child) { + return RatingStars( + onRate: (value) { + spezielleErnaehrungProvider + .setRatingSitzmoeglichkeit(value); + }, + initRating: spezielleErnaehrungProvider + .ratingSitzmoeglichkeit, + ); + }, + ) + ], ), - ), - style: TextStyle(fontSize: 20), - ); - }, - ) - ], - ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text( + "Keine Ahnung*", + style: TextStyle(fontSize: 35), + ), + Consumer( + builder: + (context, spezielleErnaehrungProvider, child) { + return RatingStars( + onRate: (value) { + spezielleErnaehrungProvider + .setRatingKeineAhnung(value); + }, + initRating: + spezielleErnaehrungProvider.ratingKeineAhnung, + ); + }, + ), + ], + ), + const SizedBox( + height: 50, + ), + Consumer( + builder: (context, spezielleErnaehrungProvider, child) { + return TextFormField( + initialValue: spezielleErnaehrungProvider.freiText, + onChanged: (value) { + spezielleErnaehrungProvider.setFreiText(value); + }, + autofocus: false, + maxLength: 500, + maxLines: 5, + decoration: InputDecoration( + labelText: "Dein Feedback (optional)", + labelStyle: const TextStyle(fontSize: 20), + border: OutlineInputBorder( + borderRadius: BorderRadius.circular(15)), + ), + style: TextStyle(fontSize: 20), + ); + }, + ) + ], + ), + ), + ), + ) + ], ), ); }