From e87705a5a1331cf97391838e88c6f34d003e8254 Mon Sep 17 00:00:00 2001 From: aamir-csol Date: Mon, 18 Aug 2025 14:48:33 +0300 Subject: [PATCH] fixes --- assets/images/biometrics.svg | 33 ++++++++++++++++++++++++++++ ios/Runner.xcodeproj/project.pbxproj | 6 ++--- lib/api/api_mapper_class.dart | 3 ++- lib/ui/landing/dashboard_screen.dart | 2 +- 4 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 assets/images/biometrics.svg diff --git a/assets/images/biometrics.svg b/assets/images/biometrics.svg new file mode 100644 index 0000000..5d61575 --- /dev/null +++ b/assets/images/biometrics.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 41c05e6..725c571 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -390,7 +390,7 @@ ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = Mohemm; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -528,7 +528,7 @@ ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = Mohemm; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -558,7 +558,7 @@ ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = Mohemm; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/lib/api/api_mapper_class.dart b/lib/api/api_mapper_class.dart index ef0c58e..584dd4b 100644 --- a/lib/api/api_mapper_class.dart +++ b/lib/api/api_mapper_class.dart @@ -271,7 +271,8 @@ class ApiClassMapper { case 'ErrorCount_Get': return; case 'GET_Menu_Entries': - return GetMenuEntriesList.fromRawJson(jsonData); + List data = (jsonDecode(jsonEncode(jsonData)) as List).map((item) => GetMenuEntriesList.fromRawJson(jsonEncode(item))).toList(); + return data; case 'GET_Open_Notifications': return GenericResponseModel.fromJson(jsonData); case 'GET_OPEN_MISSING_SWIPES': diff --git a/lib/ui/landing/dashboard_screen.dart b/lib/ui/landing/dashboard_screen.dart index 18823a7..99b162a 100644 --- a/lib/ui/landing/dashboard_screen.dart +++ b/lib/ui/landing/dashboard_screen.dart @@ -148,7 +148,7 @@ class _DashboardScreenState extends State with WidgetsBindingOb data.fetchWorkListCounter(context); data.fetchMissingSwipe(context); data.fetchLeaveTicketBalance(context, DateTime.now()); - // data.fetchMenuEntries(); + data.fetchMenuEntries(); // data.getCategoryOffersListAPI(context); // marathonProvider.getMarathonDetailsFromApi(); // marathonProvider.getMarathonTutorial();