refactoriåtion

master
FaizHashmi 3 weeks ago
parent e134e8d4e5
commit 6aec5b1a8c

@ -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) {

@ -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!) {

@ -965,7 +965,7 @@ class _DashboardScreenForDependetState extends State<DashboardScreenForDependet>
),
// 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)

Loading…
Cancel
Save