Commit 2d62e3f2 authored by Uditha Prabhasha 's avatar Uditha Prabhasha

Update kidsReport.dart

parent 7586ce3b
...@@ -49,7 +49,7 @@ class _KidsReportPageState extends State<KidsReportPage> { ...@@ -49,7 +49,7 @@ class _KidsReportPageState extends State<KidsReportPage> {
Map<String, String?> recognitionDropdownMap = { Map<String, String?> recognitionDropdownMap = {
'Can express with pictures and words': 'Select', 'Can express with pictures and words': 'Select',
'Identify shapes': 'Select', 'Identify shapes': 'Select',
'Knows Primary colors. s': 'Select', 'Knows Primary colors.': 'Select',
'Identify basic objects in the environment': 'Select', 'Identify basic objects in the environment': 'Select',
}; };
...@@ -135,20 +135,51 @@ class _KidsReportPageState extends State<KidsReportPage> { ...@@ -135,20 +135,51 @@ class _KidsReportPageState extends State<KidsReportPage> {
dropdownMap: personalityDropdownMap, dropdownMap: personalityDropdownMap,
), ),
SizedBox(height: 20), SizedBox(height: 20),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
ElevatedButton( ElevatedButton(
onPressed: () async { onPressed: () async {
if (_formkey.currentState!.validate()) { if (_formkey.currentState!.validate()) {
postDetailsToFirestore(context); postDetailsToFirestore(context);
} }
}, },
child: Text('Save'), style: ElevatedButton.styleFrom(
primary: const Color.fromARGB(255, 48, 206, 53),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0),
),
),
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Text(
'Save',
style: TextStyle(color: const Color.fromARGB(255, 255, 255, 255)),
),
),
), ),
SizedBox(height: 10),
ElevatedButton( ElevatedButton(
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
child: Text('Cancel'), style: ElevatedButton.styleFrom(
primary: const Color.fromARGB(255, 255, 255, 255),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0),
),
),
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Text(
'Cancel',
style: TextStyle(color: Colors.black),
),
),
),
],
),
), ),
SizedBox(height: 20), SizedBox(height: 20),
], ],
...@@ -190,7 +221,7 @@ class _KidsReportPageState extends State<KidsReportPage> { ...@@ -190,7 +221,7 @@ class _KidsReportPageState extends State<KidsReportPage> {
Expanded( Expanded(
flex: 1, flex: 1,
child: Container( child: Container(
width: 100, // Adjust the width as needed width: 100,
child: DropdownButton<String>( child: DropdownButton<String>(
value: dropdownMap[key], value: dropdownMap[key],
icon: Icon(Icons.arrow_drop_down), icon: Icon(Icons.arrow_drop_down),
...@@ -274,3 +305,4 @@ class _KidsReportPageState extends State<KidsReportPage> { ...@@ -274,3 +305,4 @@ class _KidsReportPageState extends State<KidsReportPage> {
)..show(); )..show();
} }
} }
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