Bug Fix for Bug Fix
This commit is contained in:
@@ -25,6 +25,7 @@ class PageAmbiente extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Center(
|
Center(
|
||||||
|
child: SingleChildScrollView(
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white.withOpacity(0.8),
|
color: Colors.white.withOpacity(0.8),
|
||||||
@@ -99,6 +100,7 @@ class PageAmbiente extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -20,21 +20,17 @@ class PageAnmerkungen extends StatelessWidget {
|
|||||||
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: SingleChildScrollView(
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white.withOpacity(0.8),
|
color: Colors.white.withOpacity(0.8),
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.only(
|
||||||
topLeft: Radius.circular(80),
|
topLeft: Radius.circular(80),
|
||||||
bottomRight: 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,
|
||||||
@@ -51,9 +47,12 @@ class PageAnmerkungen extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
Consumer<AnmerkungProvider>(
|
Consumer<AnmerkungProvider>(
|
||||||
builder: (context, essenProvider, child) {
|
builder: (context, essenProvider, child) {
|
||||||
return RatingStars(onRate: (value) {
|
return RatingStars(
|
||||||
|
onRate: (value) {
|
||||||
essenProvider.setRatingFrage1(value);
|
essenProvider.setRatingFrage1(value);
|
||||||
}, initRating: essenProvider.ratingFrage1,);
|
},
|
||||||
|
initRating: essenProvider.ratingFrage1,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
@@ -67,9 +66,12 @@ class PageAnmerkungen extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
Consumer<AnmerkungProvider>(
|
Consumer<AnmerkungProvider>(
|
||||||
builder: (context, essenProvider, child) {
|
builder: (context, essenProvider, child) {
|
||||||
return RatingStars(onRate: (value) {
|
return RatingStars(
|
||||||
|
onRate: (value) {
|
||||||
essenProvider.setRatingFrage2(value);
|
essenProvider.setRatingFrage2(value);
|
||||||
}, initRating: essenProvider.ratingFrage2,);
|
},
|
||||||
|
initRating: essenProvider.ratingFrage2,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
@@ -91,8 +93,7 @@ class PageAnmerkungen extends StatelessWidget {
|
|||||||
labelText: "Dein Feedback (optional)",
|
labelText: "Dein Feedback (optional)",
|
||||||
labelStyle: const TextStyle(fontSize: 20),
|
labelStyle: const TextStyle(fontSize: 20),
|
||||||
border: OutlineInputBorder(
|
border: OutlineInputBorder(
|
||||||
borderRadius: BorderRadius.circular(15)
|
borderRadius: BorderRadius.circular(15)),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
style: TextStyle(fontSize: 20),
|
style: TextStyle(fontSize: 20),
|
||||||
);
|
);
|
||||||
@@ -101,7 +102,9 @@ class PageAnmerkungen extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)],
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,8 +13,7 @@ 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(
|
||||||
@@ -34,16 +33,21 @@ class PageEssen extends StatelessWidget {
|
|||||||
// Vordergrundinhalte
|
// Vordergrundinhalte
|
||||||
|
|
||||||
Center(
|
Center(
|
||||||
|
child: SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
SizedBox(height: 200,),
|
|
||||||
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,),
|
const SizedBox(
|
||||||
|
height: 30,
|
||||||
|
),
|
||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white.withOpacity(0.8),
|
color: Colors.white.withOpacity(0.8),
|
||||||
@@ -123,10 +127,11 @@ class PageEssen extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ class PageService extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Center(
|
Center(
|
||||||
|
child: SingleChildScrollView(
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white.withOpacity(0.8),
|
color: Colors.white.withOpacity(0.8),
|
||||||
@@ -101,6 +102,7 @@ class PageService extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -22,21 +22,17 @@ class PageSpezielleErnaehrung extends StatelessWidget {
|
|||||||
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: SingleChildScrollView(
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white.withOpacity(0.8),
|
color: Colors.white.withOpacity(0.8),
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.only(
|
||||||
topLeft: Radius.circular(80),
|
topLeft: Radius.circular(80),
|
||||||
bottomRight: 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),
|
||||||
@@ -52,10 +48,16 @@ class PageSpezielleErnaehrung extends StatelessWidget {
|
|||||||
style: TextStyle(fontSize: 35),
|
style: TextStyle(fontSize: 35),
|
||||||
),
|
),
|
||||||
Consumer<SpezielleErnaehrungProvider>(
|
Consumer<SpezielleErnaehrungProvider>(
|
||||||
builder: (context, spezielleErnaehrungProvider, child) {
|
builder:
|
||||||
return RatingStars(onRate: (value) {
|
(context, spezielleErnaehrungProvider, child) {
|
||||||
spezielleErnaehrungProvider.setRatingSitzmoeglichkeit(value);
|
return RatingStars(
|
||||||
}, initRating: spezielleErnaehrungProvider.ratingSitzmoeglichkeit,);
|
onRate: (value) {
|
||||||
|
spezielleErnaehrungProvider
|
||||||
|
.setRatingSitzmoeglichkeit(value);
|
||||||
|
},
|
||||||
|
initRating: spezielleErnaehrungProvider
|
||||||
|
.ratingSitzmoeglichkeit,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
@@ -68,13 +70,18 @@ class PageSpezielleErnaehrung extends StatelessWidget {
|
|||||||
style: TextStyle(fontSize: 35),
|
style: TextStyle(fontSize: 35),
|
||||||
),
|
),
|
||||||
Consumer<SpezielleErnaehrungProvider>(
|
Consumer<SpezielleErnaehrungProvider>(
|
||||||
builder: (context, spezielleErnaehrungProvider, child) {
|
builder:
|
||||||
return RatingStars(onRate: (value) {
|
(context, spezielleErnaehrungProvider, child) {
|
||||||
spezielleErnaehrungProvider.setRatingKeineAhnung(value);
|
return RatingStars(
|
||||||
}, initRating: spezielleErnaehrungProvider.ratingKeineAhnung,);
|
onRate: (value) {
|
||||||
|
spezielleErnaehrungProvider
|
||||||
|
.setRatingKeineAhnung(value);
|
||||||
|
},
|
||||||
|
initRating:
|
||||||
|
spezielleErnaehrungProvider.ratingKeineAhnung,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
@@ -94,8 +101,7 @@ class PageSpezielleErnaehrung extends StatelessWidget {
|
|||||||
labelText: "Dein Feedback (optional)",
|
labelText: "Dein Feedback (optional)",
|
||||||
labelStyle: const TextStyle(fontSize: 20),
|
labelStyle: const TextStyle(fontSize: 20),
|
||||||
border: OutlineInputBorder(
|
border: OutlineInputBorder(
|
||||||
borderRadius: BorderRadius.circular(15)
|
borderRadius: BorderRadius.circular(15)),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
style: TextStyle(fontSize: 20),
|
style: TextStyle(fontSize: 20),
|
||||||
);
|
);
|
||||||
@@ -104,78 +110,10 @@ class PageSpezielleErnaehrung extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
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)
|
|
||||||
),
|
|
||||||
),
|
|
||||||
style: TextStyle(fontSize: 20),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user