Commit 4019eb83 authored by Uditha Prabhasha 's avatar Uditha Prabhasha

Update kidsReport.dart

parent fa229684
......@@ -198,17 +198,19 @@ class _KidsReportPageState extends State<KidsReportPage> {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Text(
title,
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(
title,
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
),
),
),
SizedBox(height: 10),
...dropdownMap.keys.map((String key) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0),
child: Row(
children: [
Expanded(
......@@ -220,34 +222,32 @@ class _KidsReportPageState extends State<KidsReportPage> {
),
Expanded(
flex: 1,
child: Row(
children: [
DropdownButton<String>(
value: dropdownMap[key],
icon: Icon(Icons.arrow_drop_down),
iconSize: 24,
elevation: 16,
style: TextStyle(color: Colors.black),
underline: Container(
height: 1,
color: Colors.green,
),
onChanged: (String? value) {
setState(() {
dropdownMap[key] = value;
});
},
items: dropdownValues.map<DropdownMenuItem<String>>(
(String value) {
return DropdownMenuItem<String>(
value: value,
child: Text(value),
);
},
).toList(),
child: Align(
alignment: Alignment.centerRight,
child: DropdownButton<String>(
value: dropdownMap[key],
icon: Icon(Icons.arrow_drop_down),
iconSize: 24,
elevation: 16,
style: TextStyle(color: Colors.black),
underline: Container(
height: 1,
color: Colors.green,
),
SizedBox(width: 8),
],
onChanged: (String? value) {
setState(() {
dropdownMap[key] = value;
});
},
items: dropdownValues.map<DropdownMenuItem<String>>(
(String value) {
return DropdownMenuItem<String>(
value: value,
child: Text(value),
);
},
).toList(),
),
),
),
],
......@@ -259,6 +259,7 @@ class _KidsReportPageState extends State<KidsReportPage> {
}
postDetailsToFirestore(context) async {
FirebaseFirestore firebaseFirestore = FirebaseFirestore.instance;
var user = _auth.currentUser;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment