Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Monitoring and Recommendations For Early Childhood Development
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sandunika Senavirathna
Monitoring and Recommendations For Early Childhood Development
Commits
fa229684
Commit
fa229684
authored
Mar 14, 2024
by
Uditha Prabhasha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update kidsReport.dart
parent
2d62e3f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
37 deletions
+40
-37
lib/kidsReport.dart
lib/kidsReport.dart
+40
-37
No files found.
lib/kidsReport.dart
View file @
fa229684
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment