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 { ...@@ -15,6 +15,7 @@ class Application {
final String createdDate; final String createdDate;
final String createdBy; final String createdBy;
final String updatedBy; final String updatedBy;
final String districtName;
const Application({ const Application({
required this.formId, required this.formId,
...@@ -33,6 +34,7 @@ class Application { ...@@ -33,6 +34,7 @@ class Application {
required this.createdDate, required this.createdDate,
required this.createdBy, required this.createdBy,
required this.updatedBy, required this.updatedBy,
required this.districtName,
}); });
factory Application.fromJson(Map<String, dynamic> json) { factory Application.fromJson(Map<String, dynamic> json) {
...@@ -61,6 +63,7 @@ class Application { ...@@ -61,6 +63,7 @@ class Application {
createdDate: json['createdDate'], createdDate: json['createdDate'],
createdBy: json['createdBy'], createdBy: json['createdBy'],
updatedBy: json['updatedBy'] ?? "", updatedBy: json['updatedBy'] ?? "",
districtName: json['districtName'] ?? "",
); );
} }
......
...@@ -106,6 +106,18 @@ class _ApplicationCardState extends State<ApplicationCard> { ...@@ -106,6 +106,18 @@ class _ApplicationCardState extends State<ApplicationCard> {
fontWeight: FontWeight.w400, 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( // Row(
// children: [ // children: [
// Padding( // 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