Bug Fix for Bug Fix
This commit is contained in:
@@ -25,6 +25,7 @@ class PageAmbiente extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Center(
|
||||
child: SingleChildScrollView(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
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"),
|
||||
fit: BoxFit.cover,
|
||||
colorFilter: ColorFilter.mode(
|
||||
Colors.white.withOpacity(0.2),
|
||||
BlendMode.dstATop
|
||||
),
|
||||
)
|
||||
),
|
||||
Colors.white.withOpacity(0.2), BlendMode.dstATop),
|
||||
)),
|
||||
),
|
||||
Center(
|
||||
child: SingleChildScrollView(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.8),
|
||||
borderRadius: BorderRadius.only(
|
||||
topLeft: Radius.circular(80),
|
||||
bottomRight: Radius.circular(80)
|
||||
)
|
||||
),
|
||||
bottomRight: Radius.circular(80))),
|
||||
padding: EdgeInsets.symmetric(horizontal: 20),
|
||||
height: 400,
|
||||
width: 600,
|
||||
@@ -51,9 +47,12 @@ class PageAnmerkungen extends StatelessWidget {
|
||||
),
|
||||
Consumer<AnmerkungProvider>(
|
||||
builder: (context, essenProvider, child) {
|
||||
return RatingStars(onRate: (value) {
|
||||
return RatingStars(
|
||||
onRate: (value) {
|
||||
essenProvider.setRatingFrage1(value);
|
||||
}, initRating: essenProvider.ratingFrage1,);
|
||||
},
|
||||
initRating: essenProvider.ratingFrage1,
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
@@ -67,9 +66,12 @@ class PageAnmerkungen extends StatelessWidget {
|
||||
),
|
||||
Consumer<AnmerkungProvider>(
|
||||
builder: (context, essenProvider, child) {
|
||||
return RatingStars(onRate: (value) {
|
||||
return RatingStars(
|
||||
onRate: (value) {
|
||||
essenProvider.setRatingFrage2(value);
|
||||
}, initRating: essenProvider.ratingFrage2,);
|
||||
},
|
||||
initRating: essenProvider.ratingFrage2,
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
@@ -91,8 +93,7 @@ class PageAnmerkungen extends StatelessWidget {
|
||||
labelText: "Dein Feedback (optional)",
|
||||
labelStyle: const TextStyle(fontSize: 20),
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(15)
|
||||
),
|
||||
borderRadius: BorderRadius.circular(15)),
|
||||
),
|
||||
style: TextStyle(fontSize: 20),
|
||||
);
|
||||
@@ -101,7 +102,9 @@ class PageAnmerkungen extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
)],
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -13,8 +13,7 @@ class PageEssen extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: SingleChildScrollView(
|
||||
child: Stack(
|
||||
body: Stack(
|
||||
children: [
|
||||
// Hintergrundbild
|
||||
Container(
|
||||
@@ -34,16 +33,21 @@ class PageEssen extends StatelessWidget {
|
||||
// Vordergrundinhalte
|
||||
|
||||
Center(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
SizedBox(height: 200,),
|
||||
Consumer<PageProvider>(
|
||||
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(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.8),
|
||||
@@ -123,10 +127,11 @@ class PageEssen extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
],
|
||||
)),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ class PageService extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Center(
|
||||
child: SingleChildScrollView(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
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"),
|
||||
fit: BoxFit.cover,
|
||||
colorFilter: ColorFilter.mode(
|
||||
Colors.white.withOpacity(0.2),
|
||||
BlendMode.dstATop
|
||||
),
|
||||
)
|
||||
),
|
||||
Colors.white.withOpacity(0.2), BlendMode.dstATop),
|
||||
)),
|
||||
),
|
||||
Center(
|
||||
child: SingleChildScrollView(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.8),
|
||||
borderRadius: BorderRadius.only(
|
||||
topLeft: Radius.circular(80),
|
||||
bottomRight: Radius.circular(80)
|
||||
)
|
||||
),
|
||||
bottomRight: Radius.circular(80))),
|
||||
width: 650,
|
||||
height: 450,
|
||||
padding: EdgeInsets.symmetric(horizontal: 20),
|
||||
@@ -52,10 +48,16 @@ class PageSpezielleErnaehrung extends StatelessWidget {
|
||||
style: TextStyle(fontSize: 35),
|
||||
),
|
||||
Consumer<SpezielleErnaehrungProvider>(
|
||||
builder: (context, spezielleErnaehrungProvider, child) {
|
||||
return RatingStars(onRate: (value) {
|
||||
spezielleErnaehrungProvider.setRatingSitzmoeglichkeit(value);
|
||||
}, initRating: spezielleErnaehrungProvider.ratingSitzmoeglichkeit,);
|
||||
builder:
|
||||
(context, spezielleErnaehrungProvider, child) {
|
||||
return RatingStars(
|
||||
onRate: (value) {
|
||||
spezielleErnaehrungProvider
|
||||
.setRatingSitzmoeglichkeit(value);
|
||||
},
|
||||
initRating: spezielleErnaehrungProvider
|
||||
.ratingSitzmoeglichkeit,
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
@@ -68,13 +70,18 @@ class PageSpezielleErnaehrung extends StatelessWidget {
|
||||
style: TextStyle(fontSize: 35),
|
||||
),
|
||||
Consumer<SpezielleErnaehrungProvider>(
|
||||
builder: (context, spezielleErnaehrungProvider, child) {
|
||||
return RatingStars(onRate: (value) {
|
||||
spezielleErnaehrungProvider.setRatingKeineAhnung(value);
|
||||
}, initRating: spezielleErnaehrungProvider.ratingKeineAhnung,);
|
||||
builder:
|
||||
(context, spezielleErnaehrungProvider, child) {
|
||||
return RatingStars(
|
||||
onRate: (value) {
|
||||
spezielleErnaehrungProvider
|
||||
.setRatingKeineAhnung(value);
|
||||
},
|
||||
initRating:
|
||||
spezielleErnaehrungProvider.ratingKeineAhnung,
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
@@ -94,8 +101,7 @@ class PageSpezielleErnaehrung extends StatelessWidget {
|
||||
labelText: "Dein Feedback (optional)",
|
||||
labelStyle: const TextStyle(fontSize: 20),
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(15)
|
||||
),
|
||||
borderRadius: BorderRadius.circular(15)),
|
||||
),
|
||||
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