From 6aec5b1a8ce6f3a5ce47547a348896ce82e80e9d Mon Sep 17 00:00:00 2001 From: FaizHashmi Date: Thu, 15 Oct 2026 12:31:34 +0300 Subject: [PATCH] =?UTF-8?q?refactori=C3=A5tion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/app_state/app_state.dart | 2 +- lib/models/offers_and_discounts/wala_plus_retailer_model.dart | 1 + lib/ui/landing/dashboard_screen_for_dependet.dart | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/app_state/app_state.dart b/lib/app_state/app_state.dart index 3e61a6e..af5722d 100644 --- a/lib/app_state/app_state.dart +++ b/lib/app_state/app_state.dart @@ -91,7 +91,7 @@ class AppState { String get getHuaweiPushToken => _huaweiPushToken; - final PostParamsModel _postParamsInitConfig = PostParamsModel(channel: 33, versionID: 10.1, mobileType: Platform.isAndroid ? "android" : "ios"); + final PostParamsModel _postParamsInitConfig = PostParamsModel(channel: 31, versionID: 10.1, mobileType: Platform.isAndroid ? "android" : "ios"); PostParamsModel get postParamsInitConfig { if (_postParamsInitConfig.pLegislationCode == null) { diff --git a/lib/models/offers_and_discounts/wala_plus_retailer_model.dart b/lib/models/offers_and_discounts/wala_plus_retailer_model.dart index ceb7581..8823b97 100644 --- a/lib/models/offers_and_discounts/wala_plus_retailer_model.dart +++ b/lib/models/offers_and_discounts/wala_plus_retailer_model.dart @@ -472,6 +472,7 @@ class WalaPlusRetailerModel { } String getDisplayCity({bool isAr = false}) { + log("locations: ${locations?.map((e) => e.toJson()).toList()}"); if (locations != null && locations!.isNotEmpty) { // 1. First pass: look for specific city name for (var loc in locations!) { diff --git a/lib/ui/landing/dashboard_screen_for_dependet.dart b/lib/ui/landing/dashboard_screen_for_dependet.dart index 0c85221..5455699 100644 --- a/lib/ui/landing/dashboard_screen_for_dependet.dart +++ b/lib/ui/landing/dashboard_screen_for_dependet.dart @@ -965,7 +965,7 @@ class _DashboardScreenForDependetState extends State ), // Validity badge - if (validityText.trim().isNotEmpty) InfoChipWidget(text: validityText, backgroundColor: const Color(0xFFE6F7F0), textColor: const Color(0xFF00A651)), + // if (validityText.trim().isNotEmpty) InfoChipWidget(text: validityText, backgroundColor: const Color(0xFFE6F7F0), textColor: const Color(0xFF00A651)), // Location Badge if (cityText.trim().isNotEmpty)