Bug Fix for Bug Fix
This commit is contained in:
+73
-71
@@ -25,78 +25,80 @@ class PageAmbiente extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Center(
|
Center(
|
||||||
child: Container(
|
child: SingleChildScrollView(
|
||||||
decoration: BoxDecoration(
|
child: Container(
|
||||||
color: Colors.white.withOpacity(0.8),
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.only(
|
color: Colors.white.withOpacity(0.8),
|
||||||
topLeft: Radius.circular(80),
|
borderRadius: BorderRadius.only(
|
||||||
bottomRight: Radius.circular(80)
|
topLeft: Radius.circular(80),
|
||||||
)
|
bottomRight: Radius.circular(80)
|
||||||
),
|
)
|
||||||
width: 600,
|
),
|
||||||
height: 400,
|
width: 600,
|
||||||
padding: EdgeInsets.symmetric(horizontal: 20),
|
height: 400,
|
||||||
child: Column(
|
padding: EdgeInsets.symmetric(horizontal: 20),
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
Row(
|
children: [
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
Row(
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
const Text(
|
children: [
|
||||||
"Frage1*",
|
const Text(
|
||||||
style: TextStyle(fontSize: 35),
|
"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)
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
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,
|
height: 800,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
image: DecorationImage(
|
image: DecorationImage(
|
||||||
image: AssetImage("assets/backgrounds/Anmerkungen.jpg"),
|
image: AssetImage("assets/backgrounds/Anmerkungen.jpg"),
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
colorFilter: ColorFilter.mode(
|
colorFilter: ColorFilter.mode(
|
||||||
Colors.white.withOpacity(0.2),
|
Colors.white.withOpacity(0.2), BlendMode.dstATop),
|
||||||
BlendMode.dstATop
|
)),
|
||||||
),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Center(
|
Center(
|
||||||
child: Container(
|
child: SingleChildScrollView(
|
||||||
decoration: BoxDecoration(
|
child: Container(
|
||||||
color: Colors.white.withOpacity(0.8),
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.only(
|
color: Colors.white.withOpacity(0.8),
|
||||||
topLeft: Radius.circular(80),
|
borderRadius: BorderRadius.only(
|
||||||
bottomRight: Radius.circular(80)
|
topLeft: Radius.circular(80),
|
||||||
)
|
bottomRight: Radius.circular(80))),
|
||||||
),
|
padding: EdgeInsets.symmetric(horizontal: 20),
|
||||||
padding: EdgeInsets.symmetric(horizontal: 20),
|
height: 400,
|
||||||
height: 400,
|
width: 600,
|
||||||
width: 600,
|
child: Column(
|
||||||
child: Column(
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
children: [
|
||||||
children: [
|
Row(
|
||||||
Row(
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
children: [
|
||||||
children: [
|
const Text(
|
||||||
const Text(
|
"Frage1*",
|
||||||
"Frage1*",
|
style: TextStyle(fontSize: 35),
|
||||||
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)
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
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
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
body: SingleChildScrollView(
|
body: Stack(
|
||||||
child: Stack(
|
children: [
|
||||||
children: [
|
// Hintergrundbild
|
||||||
// Hintergrundbild
|
Container(
|
||||||
Container(
|
width: 1600,
|
||||||
width: 1600,
|
height: 750,
|
||||||
height: 750,
|
decoration: BoxDecoration(
|
||||||
decoration: BoxDecoration(
|
image: DecorationImage(
|
||||||
image: DecorationImage(
|
image: AssetImage("assets/backgrounds/Essen.jpg"),
|
||||||
image: AssetImage("assets/backgrounds/Essen.jpg"),
|
fit: BoxFit.cover, // Deckt den gesamten Bildschirm ab
|
||||||
fit: BoxFit.cover, // Deckt den gesamten Bildschirm ab
|
colorFilter: ColorFilter.mode(
|
||||||
colorFilter: ColorFilter.mode(
|
Colors.white.withOpacity(0.2),
|
||||||
Colors.white.withOpacity(0.2),
|
BlendMode.dstATop,
|
||||||
BlendMode.dstATop,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// Vordergrundinhalte
|
),
|
||||||
|
// Vordergrundinhalte
|
||||||
|
|
||||||
Center(
|
Center(
|
||||||
child: Column(
|
child: SingleChildScrollView(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
child: Column(
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
SizedBox(height: 200,),
|
children: [
|
||||||
Consumer<PageProvider>(
|
Consumer<PageProvider>(
|
||||||
builder: (context, pageProvider, child) {
|
builder: (context, pageProvider, child) {
|
||||||
return Text(pageProvider.selectedEssenName, style: const TextStyle(fontSize: 40),);
|
return Text(
|
||||||
},
|
pageProvider.selectedEssenName,
|
||||||
),
|
style: const TextStyle(fontSize: 40),
|
||||||
const SizedBox(height: 30,),
|
);
|
||||||
Container(
|
},
|
||||||
decoration: BoxDecoration(
|
),
|
||||||
color: Colors.white.withOpacity(0.8),
|
const SizedBox(
|
||||||
borderRadius: const BorderRadius.only(
|
height: 30,
|
||||||
topLeft: Radius.circular(80),
|
),
|
||||||
bottomRight: Radius.circular(80))),
|
Container(
|
||||||
height: 400,
|
decoration: BoxDecoration(
|
||||||
width: 600,
|
color: Colors.white.withOpacity(0.8),
|
||||||
padding: EdgeInsets.symmetric(horizontal: 20),
|
borderRadius: const BorderRadius.only(
|
||||||
child: Column(
|
topLeft: Radius.circular(80),
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
bottomRight: Radius.circular(80))),
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
height: 400,
|
||||||
children: [
|
width: 600,
|
||||||
Row(
|
padding: EdgeInsets.symmetric(horizontal: 20),
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
child: Column(
|
||||||
children: [
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
const Text(
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
"Geschmack*",
|
children: [
|
||||||
style: TextStyle(fontSize: 35),
|
Row(
|
||||||
),
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
Consumer<EssenProvider>(
|
children: [
|
||||||
builder: (context, essenProvider, child) {
|
const Text(
|
||||||
return RatingStars(
|
"Geschmack*",
|
||||||
onRate: (value) {
|
style: TextStyle(fontSize: 35),
|
||||||
essenProvider.setRatingGeschmack(value);
|
),
|
||||||
},
|
Consumer<EssenProvider>(
|
||||||
initRating: essenProvider.ratingGeschmack,
|
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),
|
Row(
|
||||||
),
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
Consumer<EssenProvider>(
|
children: [
|
||||||
builder: (context, essenProvider, child) {
|
const Text(
|
||||||
return RatingStars(
|
"Qualität*",
|
||||||
onRate: (value) {
|
style: TextStyle(fontSize: 35),
|
||||||
essenProvider.setRatingQuali(value);
|
),
|
||||||
},
|
Consumer<EssenProvider>(
|
||||||
initRating: essenProvider.ratingQuali,
|
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(
|
const SizedBox(
|
||||||
initialValue: essenProvider.freiText,
|
height: 50,
|
||||||
onChanged: (value) {
|
),
|
||||||
essenProvider.setFreiText(value);
|
Consumer<EssenProvider>(
|
||||||
},
|
builder: (context, essenProvider, child) {
|
||||||
autofocus: false,
|
return TextFormField(
|
||||||
maxLength: 500,
|
initialValue: essenProvider.freiText,
|
||||||
maxLines: 4,
|
onChanged: (value) {
|
||||||
decoration: InputDecoration(
|
essenProvider.setFreiText(value);
|
||||||
labelText: "Dein Feedback (optional)",
|
},
|
||||||
labelStyle: const TextStyle(fontSize: 20),
|
autofocus: false,
|
||||||
border: OutlineInputBorder(
|
maxLength: 500,
|
||||||
borderRadius: BorderRadius.circular(15),
|
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(
|
Center(
|
||||||
child: Container(
|
child: SingleChildScrollView(
|
||||||
decoration: BoxDecoration(
|
child: Container(
|
||||||
color: Colors.white.withOpacity(0.8),
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.only(
|
color: Colors.white.withOpacity(0.8),
|
||||||
topLeft: Radius.circular(80),
|
borderRadius: BorderRadius.only(
|
||||||
bottomRight: Radius.circular(80)
|
topLeft: Radius.circular(80),
|
||||||
)
|
bottomRight: Radius.circular(80)
|
||||||
),
|
)
|
||||||
width: 600,
|
),
|
||||||
height: 400,
|
width: 600,
|
||||||
padding: EdgeInsets.symmetric(horizontal: 20),
|
height: 400,
|
||||||
child: Column(
|
padding: EdgeInsets.symmetric(horizontal: 20),
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
Row(
|
children: [
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
Row(
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
const Text(
|
children: [
|
||||||
"Frage1*",
|
const Text(
|
||||||
style: TextStyle(fontSize: 35),
|
"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)
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
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,
|
height: 750,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
image: DecorationImage(
|
image: DecorationImage(
|
||||||
image: AssetImage("assets/backgrounds/Speziell.jpg"),
|
image: AssetImage("assets/backgrounds/Speziell.jpg"),
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
colorFilter: ColorFilter.mode(
|
colorFilter: ColorFilter.mode(
|
||||||
Colors.white.withOpacity(0.2),
|
Colors.white.withOpacity(0.2), BlendMode.dstATop),
|
||||||
BlendMode.dstATop
|
)),
|
||||||
),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Center(
|
Center(
|
||||||
child: Container(
|
child: SingleChildScrollView(
|
||||||
decoration: BoxDecoration(
|
child: Container(
|
||||||
color: Colors.white.withOpacity(0.8),
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.only(
|
color: Colors.white.withOpacity(0.8),
|
||||||
topLeft: Radius.circular(80),
|
borderRadius: BorderRadius.only(
|
||||||
bottomRight: Radius.circular(80)
|
topLeft: Radius.circular(80),
|
||||||
)
|
bottomRight: Radius.circular(80))),
|
||||||
),
|
width: 650,
|
||||||
width: 650,
|
height: 450,
|
||||||
height: 450,
|
padding: EdgeInsets.symmetric(horizontal: 20),
|
||||||
padding: EdgeInsets.symmetric(horizontal: 20),
|
child: Column(
|
||||||
child: Column(
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
children: [
|
||||||
children: [
|
Row(
|
||||||
Row(
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
children: [
|
||||||
children: [
|
const Text(
|
||||||
const Text(
|
"Vegan?*",
|
||||||
"Vegan?*",
|
style: TextStyle(fontSize: 35),
|
||||||
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)
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
style: TextStyle(fontSize: 20),
|
Consumer<SpezielleErnaehrungProvider>(
|
||||||
);
|
builder:
|
||||||
},
|
(context, spezielleErnaehrungProvider, child) {
|
||||||
)
|
return RatingStars(
|
||||||
],
|
onRate: (value) {
|
||||||
),
|
spezielleErnaehrungProvider
|
||||||
),
|
.setRatingSitzmoeglichkeit(value);
|
||||||
)
|
},
|
||||||
],
|
initRating: spezielleErnaehrungProvider
|
||||||
),
|
.ratingSitzmoeglichkeit,
|
||||||
);
|
);
|
||||||
|
},
|
||||||
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)
|
|
||||||
),
|
),
|
||||||
),
|
Row(
|
||||||
style: TextStyle(fontSize: 20),
|
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