Unsafe device page updates

haroon_dev
haroon amjad 23 hours ago
parent 83b17532d0
commit 6521775c71

@ -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;

@ -498,7 +498,7 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
isEnglishOnly: true,
),
AppCustomChipWidget(
labelText: "${habibWalletVM.selectedHospital!.name}",
labelText: "${habibWalletVM.selectedHospital != null ? habibWalletVM.selectedHospital!.name : "Habib Hospital"}",
),
],
).paddingSymmetrical(24.h, 0.h),

@ -65,49 +65,49 @@ class _UnsafeDeviceState extends State<UnsafeDevice> {
textAlign: TextAlign.center,
),
SizedBox(height: 24.h),
// if (getIt.get<SecurityService>().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<SecurityService>()
// .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<SecurityService>().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<SecurityService>()
.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),
],
],
),
),

Loading…
Cancel
Save