diff --git a/lib/core/api_consts.dart b/lib/core/api_consts.dart index 865b7e75..7d3b97d4 100644 --- a/lib/core/api_consts.dart +++ b/lib/core/api_consts.dart @@ -5,7 +5,7 @@ import 'package:hmg_patient_app_new/core/enums.dart'; class ApiConsts { static const maxSmallScreen = 660; - static AppEnvironmentTypeEnum appEnvironmentType = AppEnvironmentTypeEnum.prod; + static AppEnvironmentTypeEnum appEnvironmentType = AppEnvironmentTypeEnum.uat; // static String baseUrl = 'https://uat.hmgwebservices.com/'; // HIS API URL UAT @@ -301,7 +301,7 @@ class ApiConsts { static String googleCloudStorageENTranslationFileBaseURL = "https://storage.googleapis.com/hmg-patientapp-translations"; // ************ static values for Api **************** - static final double appVersionID = 21.8; + static final double appVersionID = 21.9; // static final double appVersionID = 50.7; static final int appChannelId = 3; diff --git a/lib/presentation/habib_wallet/wallet_payment_confirm_page.dart b/lib/presentation/habib_wallet/wallet_payment_confirm_page.dart index 537a7dd8..ce260ca0 100644 --- a/lib/presentation/habib_wallet/wallet_payment_confirm_page.dart +++ b/lib/presentation/habib_wallet/wallet_payment_confirm_page.dart @@ -498,7 +498,7 @@ class _WalletPaymentConfirmPageState extends State { isEnglishOnly: true, ), AppCustomChipWidget( - labelText: "${habibWalletVM.selectedHospital!.name}", + labelText: "${habibWalletVM.selectedHospital != null ? habibWalletVM.selectedHospital!.name : "Habib Hospital"}", ), ], ).paddingSymmetrical(24.h, 0.h), diff --git a/lib/unsafe_device.dart b/lib/unsafe_device.dart index 4712d70a..8bfe761f 100644 --- a/lib/unsafe_device.dart +++ b/lib/unsafe_device.dart @@ -65,49 +65,49 @@ class _UnsafeDeviceState extends State { textAlign: TextAlign.center, ), SizedBox(height: 24.h), - // if (getIt.get().detectedThreats.isNotEmpty) ...[ - // Text( - // 'Detected Issues:', - // style: TextStyle( - // fontSize: 14.f, - // fontWeight: FontWeight.bold, - // color: Colors.black87, - // ), - // ), - // SizedBox(height: 8.h), - // Container( - // padding: EdgeInsets.all(12.w), - // decoration: BoxDecoration( - // color: Colors.red.withOpacity(0.1), - // borderRadius: BorderRadius.circular(8.r), - // border: Border.all(color: Colors.red.withOpacity(0.3)), - // ), - // child: Column( - // children: getIt - // .get() - // .detectedThreats - // .where((t) => t.severity == ThreatSeverity.critical) - // .take(5) // Show max 5 threats - // .map((threat) => Padding( - // padding: EdgeInsets.symmetric(vertical: 4.h), - // child: Row( - // children: [ - // Icon(Icons.error_outline, size: 16.f, color: Colors.red), - // SizedBox(width: 8.w), - // Expanded( - // child: Text( - // threat.threatType, - // style: TextStyle(fontSize: 12.f), - // ), - // ), - // ], - // ), - // )) - // .toList(), - // ), - // ), - // SizedBox(height: 24.h), - // ], + if (getIt.get().detectedThreats.isNotEmpty) ...[ + Text( + 'Detected Issues:', + style: TextStyle( + fontSize: 14.f, + fontWeight: FontWeight.bold, + color: Colors.black87, + ), + ), + SizedBox(height: 8.h), + Container( + padding: EdgeInsets.all(12.w), + decoration: BoxDecoration( + color: Colors.red.withOpacity(0.1), + borderRadius: BorderRadius.circular(8.r), + border: Border.all(color: Colors.red.withOpacity(0.3)), + ), + child: Column( + children: getIt + .get() + .detectedThreats + .where((t) => t.severity == ThreatSeverity.critical) + .take(5) // Show max 5 threats + .map((threat) => Padding( + padding: EdgeInsets.symmetric(vertical: 4.h), + child: Row( + children: [ + Icon(Icons.error_outline, size: 16.f, color: AppColors.primaryRedColor), + SizedBox(width: 8.w), + Expanded( + child: Text( + threat.threatType, + style: TextStyle(fontSize: 12.f), + ), + ), + ], + ), + )) + .toList(), + ), + ), + SizedBox(height: 24.h), + ], ], ), ),