Commit 50ad7b70 authored by devendra's avatar devendra
Browse files

Feat: Show districtName for each application

parent e5c08ffc
No related merge requests found
Showing with 15 additions and 0 deletions
+15 -0
......@@ -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'] ?? "",
);
}
......
......@@ -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(
......
Supports Markdown
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