|
@@ -312,19 +312,19 @@ class _PreselectedAddStaffState extends State<PreselectedAddStaff> {
|
|
|
MyTextView(
|
|
|
"Status:".tr,
|
|
|
isFontRegular: true,
|
|
|
- textColor: ColorConstants.textGrayAECAE5,
|
|
|
+ textColor: ColorConstants.black66,
|
|
|
fontSize: 14,
|
|
|
),
|
|
|
|
|
|
MyTextView(
|
|
|
- item.status == null? "-" : item.status.toString(),
|
|
|
+ _getStatusText(item.status),
|
|
|
marginLeft: 5,
|
|
|
isFontRegular: true,
|
|
|
- textColor: Colors.red,
|
|
|
+ textColor: ColorConstants.black66,
|
|
|
fontSize: 14,
|
|
|
),
|
|
|
]
|
|
|
- ),
|
|
|
+ ).marginOnly(top: 5),
|
|
|
|
|
|
Container(
|
|
|
margin: EdgeInsets.only(top: 19),
|
|
@@ -346,4 +346,13 @@ class _PreselectedAddStaffState extends State<PreselectedAddStaff> {
|
|
|
callback?.call();
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ String _getStatusText(int? status){
|
|
|
+ switch(status){
|
|
|
+ case 1:
|
|
|
+ return "Active".tr;
|
|
|
+ default:
|
|
|
+ return "-";
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|