Commit fa229684 authored by Uditha Prabhasha 's avatar Uditha Prabhasha

Update kidsReport.dart

parent 2d62e3f2
......@@ -192,37 +192,37 @@ class _KidsReportPageState extends State<KidsReportPage> {
}
Widget _buildDropdownSection({
required String title,
required Map<String, String?> dropdownMap,
}) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Text(
title,
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
),
required String title,
required Map<String, String?> dropdownMap,
}) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
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),
child: Row(
children: [
Expanded(
flex: 3,
child: Text(
key,
style: TextStyle(fontSize: 16),
),
),
SizedBox(height: 10),
...dropdownMap.keys.map((String key) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: Row(
children: [
Expanded(
flex: 3,
child: Text(
key,
style: TextStyle(fontSize: 16),
),
Expanded(
flex: 1,
child: Container(
width: 100,
child: DropdownButton<String>(
),
Expanded(
flex: 1,
child: Row(
children: [
DropdownButton<String>(
value: dropdownMap[key],
icon: Icon(Icons.arrow_drop_down),
iconSize: 24,
......@@ -246,15 +246,18 @@ class _KidsReportPageState extends State<KidsReportPage> {
},
).toList(),
),
),
SizedBox(width: 8),
],
),
],
),
);
}).toList(),
],
);
}
),
],
),
);
}).toList(),
],
);
}
postDetailsToFirestore(context) async {
FirebaseFirestore firebaseFirestore = FirebaseFirestore.instance;
......
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