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),
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user