From 8a2f2fbdb6dc4e7b3635a4a0f2a9c761327d5355 Mon Sep 17 00:00:00 2001 From: Faiz Hashmi Date: Thu, 5 Dec 2024 18:00:41 +0300 Subject: [PATCH] Dropped the JIRA Count to 23 --- .../dashboard/fragments/home_fragment.dart | 83 +++++++++---------- pubspec.yaml | 4 +- 2 files changed, 43 insertions(+), 44 deletions(-) diff --git a/lib/views/dashboard/fragments/home_fragment.dart b/lib/views/dashboard/fragments/home_fragment.dart index 97b33e2..5184911 100644 --- a/lib/views/dashboard/fragments/home_fragment.dart +++ b/lib/views/dashboard/fragments/home_fragment.dart @@ -94,53 +94,52 @@ class HomeFragment extends StatelessWidget { ], ); } - return SizedBox(); }, ), // NEARBY BRANCHES SECTION - 7.height, - Consumer( - builder: (BuildContext context, AppointmentsVM appointmentVM, Widget? child) { - if (appointmentVM.state == ViewState.busy) { - return Center(child: CircularProgressIndicator()); - } - - if (appointmentVM.myRecentBranches.isNotEmpty) { - return Column( - children: [ - ViewAllWidget( - title: LocaleKeys.myRecentBranches.tr().toUpperCase(), - subTitle: '', - onSubtitleTapped: () { - // context.read().onNavbarTapped(0); - // context.read().applyFilterOnBranches(index: 0); - }, - ).horPaddingMain(), - MyRecentBranchesWidget(nearbyBranches: appointmentVM.myRecentBranches).horPaddingMain(), - ], - ); - } - if (appointmentVM.nearbyBranches.isNotEmpty) { - return Column( - children: [ - ViewAllWidget( - title: LocaleKeys.myNearbyBranches.tr().toUpperCase(), - subTitle: LocaleKeys.view_all.tr(), - onSubtitleTapped: () { - context.read().onNavbarTapped(0); - context.read().applyFilterOnBranches(index: 0); - }, - ).horPaddingMain(), - MyRecentBranchesWidget(nearbyBranches: appointmentVM.nearbyBranches).horPaddingMain(), - ], - ); - } - - return SizedBox(); - }, - ), + // 7.height, + // Consumer( + // builder: (BuildContext context, AppointmentsVM appointmentVM, Widget? child) { + // if (appointmentVM.state == ViewState.busy) { + // return Center(child: CircularProgressIndicator()); + // } + // + // if (appointmentVM.myRecentBranches.isNotEmpty) { + // return Column( + // children: [ + // ViewAllWidget( + // title: LocaleKeys.myRecentBranches.tr().toUpperCase(), + // subTitle: '', + // onSubtitleTapped: () { + // // context.read().onNavbarTapped(0); + // // context.read().applyFilterOnBranches(index: 0); + // }, + // ).horPaddingMain(), + // MyRecentBranchesWidget(nearbyBranches: appointmentVM.myRecentBranches).horPaddingMain(), + // ], + // ); + // } + // if (appointmentVM.nearbyBranches.isNotEmpty) { + // return Column( + // children: [ + // ViewAllWidget( + // title: LocaleKeys.myNearbyBranches.tr().toUpperCase(), + // subTitle: LocaleKeys.view_all.tr(), + // onSubtitleTapped: () { + // context.read().onNavbarTapped(0); + // context.read().applyFilterOnBranches(index: 0); + // }, + // ).horPaddingMain(), + // MyRecentBranchesWidget(nearbyBranches: appointmentVM.nearbyBranches).horPaddingMain(), + // ], + // ); + // } + // + // return SizedBox(); + // }, + // ), // ADS SECTION Consumer( diff --git a/pubspec.yaml b/pubspec.yaml index 88e27c9..72eb733 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -37,8 +37,8 @@ dependencies: mc_common_app: # path: D:\Development\car_common_app - # path: /Volumes/Data/Projects/Flutter/car_common_app - path: /Users/faizhashmi/Development/Projects/MyProjects/CloudSolutions/car_common_app + path: /Volumes/Data/Projects/Flutter/car_common_app +# path: /Users/faizhashmi/Development/Projects/MyProjects/CloudSolutions/car_common_app dev_dependencies: flutter_test: