|
|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
|
import 'package:flutter/gestures.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:mc_common_app/classes/app_state.dart';
|
|
|
|
|
import 'package:mc_common_app/classes/consts.dart';
|
|
|
|
|
import 'package:mc_common_app/config/routes.dart';
|
|
|
|
|
import 'package:mc_common_app/extensions/int_extensions.dart';
|
|
|
|
|
@ -59,6 +60,7 @@ class BranchListPage extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
bool isArabic = AppState().isArabic(context);
|
|
|
|
|
return Scaffold(
|
|
|
|
|
appBar: CustomAppBar(
|
|
|
|
|
title: LocaleKeys.myBranches.tr(),
|
|
|
|
|
@ -74,15 +76,35 @@ class BranchListPage extends StatelessWidget {
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(left: 21, right: 21, top: 21),
|
|
|
|
|
child: RoleTypeTab(
|
|
|
|
|
context.watch<ServiceVM>().selectedBranchStatus == 3 ? 0 : context.watch<ServiceVM>().selectedBranchStatus,
|
|
|
|
|
context.watch<ServiceVM>().selectedBranchStatus == 3
|
|
|
|
|
? 0
|
|
|
|
|
: context.watch<ServiceVM>().selectedBranchStatus,
|
|
|
|
|
[
|
|
|
|
|
DropValue(3, "Active", ""),
|
|
|
|
|
DropValue(1, "Requested", ""),
|
|
|
|
|
DropValue(
|
|
|
|
|
3,
|
|
|
|
|
isArabic ? "نشط" : "Active",
|
|
|
|
|
"",
|
|
|
|
|
),
|
|
|
|
|
DropValue(
|
|
|
|
|
1,
|
|
|
|
|
isArabic ? "مطلوب" : "Requested",
|
|
|
|
|
"",
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
onSelect: (DropValue value) {
|
|
|
|
|
context.read<ServiceVM>().updateSelectedBranchType(value.id);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
// child: RoleTypeTab(
|
|
|
|
|
// context.watch<ServiceVM>().selectedBranchStatus == 3 ? 0 : context.watch<ServiceVM>().selectedBranchStatus,
|
|
|
|
|
// [
|
|
|
|
|
// DropValue(3, "Active", ""),
|
|
|
|
|
// DropValue(1, "Requested", ""),
|
|
|
|
|
// ],
|
|
|
|
|
// onSelect: (DropValue value) {
|
|
|
|
|
// context.read<ServiceVM>().updateSelectedBranchType(value.id);
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Consumer<ServiceVM>(
|
|
|
|
|
|