Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-smf-mobile
Commits
50ad7b70
Commit
50ad7b70
authored
2 years ago
by
devendra
Browse files
Options
Download
Patches
Plain Diff
Feat: Show districtName for each application
parent
e5c08ffc
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/models/application_model.dart
+3
-0
lib/models/application_model.dart
lib/widgets/application_card.dart
+12
-0
lib/widgets/application_card.dart
with
15 additions
and
0 deletions
+15
-0
lib/models/application_model.dart
+
3
−
0
View file @
50ad7b70
...
...
@@ -15,6 +15,7 @@ class Application {
final
String
createdDate
;
final
String
createdBy
;
final
String
updatedBy
;
final
String
districtName
;
const
Application
({
required
this
.
formId
,
...
...
@@ -33,6 +34,7 @@ class Application {
required
this
.
createdDate
,
required
this
.
createdBy
,
required
this
.
updatedBy
,
required
this
.
districtName
,
});
factory
Application
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
...
...
@@ -61,6 +63,7 @@ class Application {
createdDate:
json
[
'createdDate'
],
createdBy:
json
[
'createdBy'
],
updatedBy:
json
[
'updatedBy'
]
??
""
,
districtName:
json
[
'districtName'
]
??
""
,
);
}
...
...
This diff is collapsed.
Click to expand it.
lib/widgets/application_card.dart
+
12
−
0
View file @
50ad7b70
...
...
@@ -106,6 +106,18 @@ class _ApplicationCardState extends State<ApplicationCard> {
fontWeight:
FontWeight
.
w400
,
)),
),
widget
.
application
.
districtName
.
isNotEmpty
?
Padding
(
padding:
const
EdgeInsets
.
only
(
bottom:
10
),
child:
Text
(
widget
.
application
.
districtName
,
style:
GoogleFonts
.
lato
(
color:
AppColors
.
black60
,
fontSize:
14.0
,
letterSpacing:
0.12
,
fontWeight:
FontWeight
.
w700
,
)),
)
:
const
SizedBox
(),
// Row(
// children: [
// Padding(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets