update staff list, add pin editor and privilege editor
This commit is contained in:
@@ -47,7 +47,6 @@ class Carton {
|
||||
int weight;
|
||||
String? packageType;
|
||||
String? pickUpID;
|
||||
List<String> photos = [];
|
||||
List<String> photoUrls;
|
||||
String? remark;
|
||||
DateTime? arrivedDate;
|
||||
|
||||
@@ -19,6 +19,9 @@ class User {
|
||||
int userUnseenCount;
|
||||
int fcsUnseenCount;
|
||||
String? preferCurrency;
|
||||
bool enablePinLogin;
|
||||
String? pinDigit;
|
||||
String? confirmPinDigit;
|
||||
|
||||
String get initial =>
|
||||
name != null && name != "" ? name!.substring(0, 1) : "?";
|
||||
@@ -68,7 +71,10 @@ class User {
|
||||
this.lastMessageTime,
|
||||
this.userUnseenCount = 0,
|
||||
this.fcsUnseenCount = 0,
|
||||
this.preferCurrency});
|
||||
this.preferCurrency,
|
||||
this.enablePinLogin = false,
|
||||
this.pinDigit,
|
||||
this.confirmPinDigit});
|
||||
|
||||
factory User.fromJson(Map<String, dynamic> json) {
|
||||
return User(
|
||||
|
||||
Reference in New Issue
Block a user