Commit fa229684 authored by Uditha Prabhasha 's avatar Uditha Prabhasha

Update kidsReport.dart

parent 2d62e3f2
...@@ -194,7 +194,7 @@ class _KidsReportPageState extends State<KidsReportPage> { ...@@ -194,7 +194,7 @@ class _KidsReportPageState extends State<KidsReportPage> {
Widget _buildDropdownSection({ Widget _buildDropdownSection({
required String title, required String title,
required Map<String, String?> dropdownMap, required Map<String, String?> dropdownMap,
}) { }) {
return Column( return Column(
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
...@@ -220,9 +220,9 @@ class _KidsReportPageState extends State<KidsReportPage> { ...@@ -220,9 +220,9 @@ class _KidsReportPageState extends State<KidsReportPage> {
), ),
Expanded( Expanded(
flex: 1, flex: 1,
child: Container( child: Row(
width: 100, children: [
child: DropdownButton<String>( DropdownButton<String>(
value: dropdownMap[key], value: dropdownMap[key],
icon: Icon(Icons.arrow_drop_down), icon: Icon(Icons.arrow_drop_down),
iconSize: 24, iconSize: 24,
...@@ -246,6 +246,8 @@ class _KidsReportPageState extends State<KidsReportPage> { ...@@ -246,6 +246,8 @@ class _KidsReportPageState extends State<KidsReportPage> {
}, },
).toList(), ).toList(),
), ),
SizedBox(width: 8),
],
), ),
), ),
], ],
...@@ -254,7 +256,8 @@ class _KidsReportPageState extends State<KidsReportPage> { ...@@ -254,7 +256,8 @@ class _KidsReportPageState extends State<KidsReportPage> {
}).toList(), }).toList(),
], ],
); );
} }
postDetailsToFirestore(context) async { postDetailsToFirestore(context) async {
FirebaseFirestore firebaseFirestore = FirebaseFirestore.instance; 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