fix profile

This commit is contained in:
Sai Naw Wun
2020-10-11 02:17:23 +06:30
parent b0ce53f856
commit 32e6be2abd
42 changed files with 938 additions and 626 deletions

View File

@@ -17,6 +17,7 @@ class User {
String lastMessage;
int userUnseenCount;
int fcsUnseenCount;
String preferCurrency;
String get initial => name != null && name != "" ? name.substring(0, 1) : "?";
@@ -64,7 +65,8 @@ class User {
this.lastMessage,
this.lastMessageTime,
this.userUnseenCount,
this.fcsUnseenCount});
this.fcsUnseenCount,
this.preferCurrency});
factory User.fromJson(Map<String, dynamic> json) {
return User(
@@ -106,6 +108,7 @@ class User {
lastMessage: map['last_message'],
userUnseenCount: map['user_unseen_count'],
fcsUnseenCount: map['fcs_unseen_count'],
preferCurrency: map['preferred_currency'],
lastMessageTime: _date == null ? null : _date.toDate());
}