Bug Fix for Bug Fix
This commit is contained in:
+73
-71
@@ -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<AmbienteProvider>(
|
||||
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<AmbienteProvider>(
|
||||
builder: (context, essenProvider, child) {
|
||||
return RatingStars(onRate: (value) {
|
||||
essenProvider.setRatingFrage2(value);
|
||||
}, initRating: essenProvider.ratingFrage2,);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 50,
|
||||
),
|
||||
Consumer<AmbienteProvider>(
|
||||
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<AmbienteProvider>(
|
||||
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<AmbienteProvider>(
|
||||
builder: (context, essenProvider, child) {
|
||||
return RatingStars(onRate: (value) {
|
||||
essenProvider.setRatingFrage2(value);
|
||||
}, initRating: essenProvider.ratingFrage2,);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 50,
|
||||
),
|
||||
Consumer<AmbienteProvider>(
|
||||
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),
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
@@ -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<AnmerkungProvider>(
|
||||
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<AnmerkungProvider>(
|
||||
builder: (context, essenProvider, child) {
|
||||
return RatingStars(onRate: (value) {
|
||||
essenProvider.setRatingFrage2(value);
|
||||
}, initRating: essenProvider.ratingFrage2,);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 50,
|
||||
),
|
||||
Consumer<AnmerkungProvider>(
|
||||
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<AnmerkungProvider>(
|
||||
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<AnmerkungProvider>(
|
||||
builder: (context, essenProvider, child) {
|
||||
return RatingStars(
|
||||
onRate: (value) {
|
||||
essenProvider.setRatingFrage2(value);
|
||||
},
|
||||
initRating: essenProvider.ratingFrage2,
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 50,
|
||||
),
|
||||
Consumer<AnmerkungProvider>(
|
||||
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),
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
)],
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
+113
-108
@@ -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<PageProvider>(
|
||||
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<EssenProvider>(
|
||||
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<EssenProvider>(
|
||||
builder: (context, essenProvider, child) {
|
||||
return RatingStars(
|
||||
onRate: (value) {
|
||||
essenProvider.setRatingQuali(value);
|
||||
},
|
||||
initRating: essenProvider.ratingQuali,
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 50,
|
||||
),
|
||||
Consumer<EssenProvider>(
|
||||
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<PageProvider>(
|
||||
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<EssenProvider>(
|
||||
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<EssenProvider>(
|
||||
builder: (context, essenProvider, child) {
|
||||
return RatingStars(
|
||||
onRate: (value) {
|
||||
essenProvider.setRatingQuali(value);
|
||||
},
|
||||
initRating: essenProvider.ratingQuali,
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 50,
|
||||
),
|
||||
Consumer<EssenProvider>(
|
||||
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),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)),
|
||||
],
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
+73
-71
@@ -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<ServiceProvider>(
|
||||
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<ServiceProvider>(
|
||||
builder: (context, essenProvider, child) {
|
||||
return RatingStars(onRate: (value) {
|
||||
essenProvider.setRatingFrage2(value);
|
||||
}, initRating: essenProvider.ratingFrage2,);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 50,
|
||||
),
|
||||
Consumer<ServiceProvider>(
|
||||
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<ServiceProvider>(
|
||||
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<ServiceProvider>(
|
||||
builder: (context, essenProvider, child) {
|
||||
return RatingStars(onRate: (value) {
|
||||
essenProvider.setRatingFrage2(value);
|
||||
}, initRating: essenProvider.ratingFrage2,);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 50,
|
||||
),
|
||||
Consumer<ServiceProvider>(
|
||||
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),
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
@@ -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<SpezielleErnaehrungProvider>(
|
||||
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<SpezielleErnaehrungProvider>(
|
||||
builder: (context, spezielleErnaehrungProvider, child) {
|
||||
return RatingStars(onRate: (value) {
|
||||
spezielleErnaehrungProvider.setRatingKeineAhnung(value);
|
||||
}, initRating: spezielleErnaehrungProvider.ratingKeineAhnung,);
|
||||
},
|
||||
),
|
||||
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 50,
|
||||
),
|
||||
Consumer<SpezielleErnaehrungProvider>(
|
||||
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<SpezielleErnaehrungProvider>(
|
||||
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<SpezielleErnaehrungProvider>(
|
||||
builder: (context, spezielleErnaehrungProvider, child) {
|
||||
return RatingStars(onRate: (value) {
|
||||
spezielleErnaehrungProvider.setRatingKeineAhnung(value);
|
||||
}, initRating: spezielleErnaehrungProvider.ratingKeineAhnung,);
|
||||
},
|
||||
),
|
||||
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 50,
|
||||
),
|
||||
Consumer<SpezielleErnaehrungProvider>(
|
||||
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<SpezielleErnaehrungProvider>(
|
||||
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<SpezielleErnaehrungProvider>(
|
||||
builder:
|
||||
(context, spezielleErnaehrungProvider, child) {
|
||||
return RatingStars(
|
||||
onRate: (value) {
|
||||
spezielleErnaehrungProvider
|
||||
.setRatingKeineAhnung(value);
|
||||
},
|
||||
initRating:
|
||||
spezielleErnaehrungProvider.ratingKeineAhnung,
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 50,
|
||||
),
|
||||
Consumer<SpezielleErnaehrungProvider>(
|
||||
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),
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user