|
|
|
|
@ -22,6 +22,7 @@ import 'package:mc_common_app/widgets/extensions/extensions_widget.dart';
|
|
|
|
|
import 'package:mc_common_app/widgets/row_with_arrow.dart';
|
|
|
|
|
import 'package:mc_common_app/widgets/tab/role_type_tab.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
|
|
|
|
|
|
class BranchListPage extends StatelessWidget {
|
|
|
|
|
const BranchListPage({super.key});
|
|
|
|
|
@ -160,11 +161,15 @@ class BranchListPage extends StatelessWidget {
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
// Utils.statusContainerChip(
|
|
|
|
|
// text: (branchModel.branchStatusLabel ?? "").replaceFirst("ApprovedOrActive", "Active"),
|
|
|
|
|
// chipColor: Utils.getChipColorByBranchStatus(branchModel.branchStatus!),
|
|
|
|
|
// ),
|
|
|
|
|
Utils.statusContainerChip(
|
|
|
|
|
text: (branchModel.branchStatusLabel ?? "").replaceFirst("ApprovedOrActive", "Active"),
|
|
|
|
|
text: Localizations.localeOf(context).languageCode == 'ar' ? 'نشط' : 'Active',
|
|
|
|
|
chipColor: Utils.getChipColorByBranchStatus(branchModel.branchStatus!),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
5.height,
|
|
|
|
|
// branchModel.distanceKm == null
|
|
|
|
|
@ -185,14 +190,35 @@ class BranchListPage extends StatelessWidget {
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// 5.height,
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: (branchModel.branchName ?? "").toText(fontSize: 16, height: 18 / 16),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
).withArrow(isArrowEnabled: branchModel.branchStatus != BranchStatusEnum.blocked).margin(right: 10),
|
|
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: (branchModel.branchName ?? "")
|
|
|
|
|
.toText(fontSize: 16, height: 18 / 16),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
if (branchModel.branchStatus != BranchStatusEnum.blocked)
|
|
|
|
|
Transform.flip(
|
|
|
|
|
flipX: isArabic,
|
|
|
|
|
child: SvgPicture.asset(
|
|
|
|
|
MyAssets.arrowRight,
|
|
|
|
|
height: 9.69,
|
|
|
|
|
width: 13.0,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).margin(right: 10),
|
|
|
|
|
// Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
// children: [
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: (branchModel.branchName ?? "").toText(fontSize: 16, height: 18 / 16),
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ).withArrow(isArrowEnabled: branchModel.branchStatus != BranchStatusEnum.blocked).margin(right: 10),
|
|
|
|
|
(branchModel.branchDescription ?? "").toText(
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
|
|