|
|
|
|
@ -120,9 +120,13 @@ class _BranchDetailPageState extends State<BranchDetailPage> {
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
} else if (widget.branchData.branchStatus == BranchStatusEnum.pending) {
|
|
|
|
|
actionWidget = pendingApprovalAction(pendingText: LocaleKeys.approvalPending.tr(),);
|
|
|
|
|
actionWidget = pendingApprovalAction(
|
|
|
|
|
pendingText: LocaleKeys.approvalPending.tr(),
|
|
|
|
|
);
|
|
|
|
|
} else if (widget.branchData.branchStatus == BranchStatusEnum.deactivated) {
|
|
|
|
|
actionWidget = pendingApprovalAction(pendingText: LocaleKeys.activateNow.tr(),);
|
|
|
|
|
actionWidget = pendingApprovalAction(
|
|
|
|
|
pendingText: LocaleKeys.activateNow.tr(),
|
|
|
|
|
);
|
|
|
|
|
} else if (widget.branchData.branchStatus == BranchStatusEnum.rejected) {
|
|
|
|
|
actionWidget = Column(
|
|
|
|
|
children: [
|
|
|
|
|
@ -175,8 +179,11 @@ class _BranchDetailPageState extends State<BranchDetailPage> {
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
(isArabic ? (serviceVM.categories[pIndex].categoryNameN ?? serviceVM.categories[pIndex].categoryName)
|
|
|
|
|
: serviceVM.categories[pIndex].categoryName).toString().toText(fontSize: 16),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: (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),
|
|
|
|
|
@ -382,8 +389,6 @@ 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();
|
|
|
|
|
|