|
|
|
|
@ -53,7 +53,7 @@ class _BranchDetailPageState extends State<BranchDetailPage> {
|
|
|
|
|
"ServiceProviderID": AppState().getUser.data?.userInfo?.providerId.toString() ?? "",
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// await serviceVM.getBranchAndServices();
|
|
|
|
|
serviceVM.filterUserBranchCategories();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@ -123,9 +123,9 @@ class _BranchDetailPageState extends State<BranchDetailPage> {
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
} else if (widget.branchData.branchStatus == BranchStatusEnum.pending) {
|
|
|
|
|
actionWidget = pendingApprovalAction(pendingText: "Approval Pending");
|
|
|
|
|
actionWidget = pendingApprovalAction(pendingText: LocaleKeys.approvalPending.tr(),);
|
|
|
|
|
} else if (widget.branchData.branchStatus == BranchStatusEnum.deactivated) {
|
|
|
|
|
actionWidget = pendingApprovalAction(pendingText: "Activate Now");
|
|
|
|
|
actionWidget = pendingApprovalAction(pendingText: LocaleKeys.activateNow.tr(),);
|
|
|
|
|
} else if (widget.branchData.branchStatus == BranchStatusEnum.rejected) {
|
|
|
|
|
actionWidget = Column(
|
|
|
|
|
children: [
|
|
|
|
|
@ -180,9 +180,11 @@ class _BranchDetailPageState extends State<BranchDetailPage> {
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
isArabic
|
|
|
|
|
? serviceVM.categories[pIndex].categoryNameN.toString().toText(fontSize: 14, maxLines: 2)
|
|
|
|
|
: serviceVM.categories[pIndex].categoryName.toString().toText(fontSize: 14, maxLines: 2),
|
|
|
|
|
(isArabic ? (serviceVM.categories[pIndex].categoryNameN ?? serviceVM.categories[pIndex].categoryName)
|
|
|
|
|
: serviceVM.categories[pIndex].categoryName).toString().toText(fontSize: 16),
|
|
|
|
|
// isArabic
|
|
|
|
|
// ? serviceVM.categories[pIndex].categoryNameN.toString().toText(fontSize: 14, maxLines: 2)
|
|
|
|
|
// : serviceVM.categories[pIndex].categoryName.toString().toText(fontSize: 14, maxLines: 2),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
8.height,
|
|
|
|
|
@ -390,6 +392,8 @@ class _BranchDetailPageState extends State<BranchDetailPage> {
|
|
|
|
|
] else ...[
|
|
|
|
|
ListView.separated(
|
|
|
|
|
itemBuilder: (context, pIndex) {
|
|
|
|
|
print("Category English ===== ${serviceVM.categories[pIndex].categoryName}");
|
|
|
|
|
print("Category Arabic ===== ${serviceVM.categories[pIndex].categoryNameN}");
|
|
|
|
|
return buildServiceTileWidget(pIndex, serviceVM).onPress(() {
|
|
|
|
|
serviceVM.categories[pIndex].branchId = widget.branchData.id.toString();
|
|
|
|
|
serviceVM.categories[pIndex].branchName = widget.branchData.branchName.toString();
|
|
|
|
|
|