|
|
|
|
@ -91,6 +91,15 @@ class _DelegateSheetState extends State<DelegateSheet> {
|
|
|
|
|
favUsersList = await WorkListApiClient().getFavoriteReplacementWithImage(selectedFavLetter ?? "");
|
|
|
|
|
if (isNeedLoading) Utils.hideLoading(context);
|
|
|
|
|
setState(() {});
|
|
|
|
|
fetchFavUsersListNew(isNeedLoading: false);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future fetchFavUsersListNew({bool isNeedLoading = true}) async {
|
|
|
|
|
if (isNeedLoading) Utils.showLoading(context);
|
|
|
|
|
favUsersList = await WorkListApiClient().getFavoriteReplacementWithImageNew(selectedFavLetter ?? "");
|
|
|
|
|
if (isNeedLoading) Utils.hideLoading(context);
|
|
|
|
|
setState(() {});
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -195,7 +204,7 @@ class _DelegateSheetState extends State<DelegateSheet> {
|
|
|
|
|
).onPress(() {
|
|
|
|
|
showMyBottomSheet(
|
|
|
|
|
context,
|
|
|
|
|
callBackFunc: (){},
|
|
|
|
|
callBackFunc: () {},
|
|
|
|
|
child: SearchOptionsSheet(
|
|
|
|
|
selectedType,
|
|
|
|
|
onSelection: (String value) {
|
|
|
|
|
@ -478,12 +487,24 @@ class _DelegateSheetState extends State<DelegateSheet> {
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
CircularAvatar(
|
|
|
|
|
url: actionHistory.employeeImage,
|
|
|
|
|
height: 30,
|
|
|
|
|
width: 30,
|
|
|
|
|
isImageBase64: (actionHistory.employeeImage != null || actionHistory.employeeImage!.isNotEmpty) ? true : false,
|
|
|
|
|
),
|
|
|
|
|
actionHistory.employeeImage != ""
|
|
|
|
|
? CircularAvatar(
|
|
|
|
|
url: actionHistory.employeeImage,
|
|
|
|
|
height: 40,
|
|
|
|
|
width: 40,
|
|
|
|
|
isImageBase64: (actionHistory.employeeImage != null || actionHistory.employeeImage!.isNotEmpty) ? true : false,
|
|
|
|
|
)
|
|
|
|
|
: ClipRRect(
|
|
|
|
|
borderRadius: const BorderRadius.all(
|
|
|
|
|
Radius.circular(50),
|
|
|
|
|
),
|
|
|
|
|
child: Image.network(
|
|
|
|
|
"https://play-lh.googleusercontent.com/NPo88ojmhah4HDiposucJmfQIop4z4xc8kqJK9ITO9o-yCab2zxIp7PPB_XPj2iUojo",
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
height: 40,
|
|
|
|
|
width: 40,
|
|
|
|
|
).toShimmer(),
|
|
|
|
|
),
|
|
|
|
|
16.width,
|
|
|
|
|
Expanded(
|
|
|
|
|
child: (actionHistory.employeeDisplayName ?? "").toText12(),
|
|
|
|
|
|