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

Update kidsReport.dart

parent fa229684
...@@ -198,17 +198,19 @@ class _KidsReportPageState extends State<KidsReportPage> { ...@@ -198,17 +198,19 @@ class _KidsReportPageState extends State<KidsReportPage> {
return Column( return Column(
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
Text( Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(
title, title,
style: TextStyle( style: TextStyle(
fontSize: 18, fontSize: 18,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
), ),
SizedBox(height: 10), ),
...dropdownMap.keys.map((String key) { ...dropdownMap.keys.map((String key) {
return Padding( return Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0), padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0),
child: Row( child: Row(
children: [ children: [
Expanded( Expanded(
...@@ -220,9 +222,9 @@ class _KidsReportPageState extends State<KidsReportPage> { ...@@ -220,9 +222,9 @@ class _KidsReportPageState extends State<KidsReportPage> {
), ),
Expanded( Expanded(
flex: 1, flex: 1,
child: Row( child: Align(
children: [ alignment: Alignment.centerRight,
DropdownButton<String>( child: 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,8 +248,6 @@ class _KidsReportPageState extends State<KidsReportPage> { ...@@ -246,8 +248,6 @@ class _KidsReportPageState extends State<KidsReportPage> {
}, },
).toList(), ).toList(),
), ),
SizedBox(width: 8),
],
), ),
), ),
], ],
...@@ -259,6 +259,7 @@ class _KidsReportPageState extends State<KidsReportPage> { ...@@ -259,6 +259,7 @@ class _KidsReportPageState extends State<KidsReportPage> {
} }
postDetailsToFirestore(context) async { postDetailsToFirestore(context) async {
FirebaseFirestore firebaseFirestore = FirebaseFirestore.instance; FirebaseFirestore firebaseFirestore = FirebaseFirestore.instance;
var user = _auth.currentUser; 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