Merge pull request 'haroon_dev' (#385) from haroon_dev into master
Reviewed-on: https://34.17.182.140/Haroon6138/HMG_Patient_App_New/pulls/385master
commit
4c56e58f3f
@ -0,0 +1,10 @@
|
|||||||
|
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<rect width="120" height="120" rx="60" fill="#ED1C2B" fill-opacity="0.0784314"/>
|
||||||
|
<rect x="27" y="45" width="18" height="30" rx="3" fill="white"/>
|
||||||
|
<rect x="27" y="45" width="18" height="30" rx="3" stroke="#ED1C2B" stroke-width="2"/>
|
||||||
|
<rect x="30" y="52" width="12" height="16" rx="2" fill="#ED1C2B" fill-opacity="0.101961"/>
|
||||||
|
<path d="M55.333 59.9992H64.6674M60.0002 64.6664L64.6674 59.9992L60.0002 55.332" stroke="#ED1C2B" stroke-width="2" stroke-linecap="round"/>
|
||||||
|
<rect x="75" y="45" width="18" height="30" rx="3" fill="white"/>
|
||||||
|
<rect x="75" y="45" width="18" height="30" rx="3" stroke="#ED1C2B" stroke-width="2"/>
|
||||||
|
<rect x="78" y="52" width="12" height="16" rx="2" fill="#ED1C2B" fill-opacity="0.101961"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 812 B |
@ -0,0 +1,104 @@
|
|||||||
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:clarity_flutter/clarity_flutter.dart';
|
||||||
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:freerasp/freerasp.dart';
|
||||||
|
import 'package:hmg_patient_app_new/core/app_assets.dart';
|
||||||
|
import 'package:hmg_patient_app_new/core/dependencies.dart';
|
||||||
|
import 'package:hmg_patient_app_new/core/utils/size_utils.dart';
|
||||||
|
import 'package:hmg_patient_app_new/core/utils/utils.dart';
|
||||||
|
import 'package:hmg_patient_app_new/services/security_service.dart';
|
||||||
|
import 'package:hmg_patient_app_new/theme/colors.dart';
|
||||||
|
|
||||||
|
import 'generated/locale_keys.g.dart';
|
||||||
|
import 'widgets/buttons/custom_button.dart';
|
||||||
|
|
||||||
|
class AppClosedPage extends StatefulWidget {
|
||||||
|
const AppClosedPage({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<AppClosedPage> createState() => _AppClosedPageState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _AppClosedPageState extends State<AppClosedPage> {
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
// Clarity.setCurrentScreenName('Unsafe Device Page');
|
||||||
|
Talsec.instance.detachListener();
|
||||||
|
super.initState();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
backgroundColor: AppColors.whiteColor,
|
||||||
|
body: SafeArea(
|
||||||
|
child: Padding(
|
||||||
|
padding: EdgeInsets.symmetric(horizontal: 24.w),
|
||||||
|
child: Column(
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
// Logo
|
||||||
|
Utils.buildImgWithAssets(icon: AppAssets.hmgLogo, width: MediaQuery.of(context).size.width * 0.7, height: 90.h, fit: BoxFit.contain),
|
||||||
|
SizedBox(height: 32.h),
|
||||||
|
Text(
|
||||||
|
LocaleKeys.importantNotice.tr(context: context),
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 28.f,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
color: AppColors.textColor,
|
||||||
|
),
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
SizedBox(height: 16.h),
|
||||||
|
// Description
|
||||||
|
Text(
|
||||||
|
LocaleKeys.appDecommissionedText.tr(context: context),
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 14.f,
|
||||||
|
color: Colors.black87,
|
||||||
|
),
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
SizedBox(height: 24.h),
|
||||||
|
Text(
|
||||||
|
LocaleKeys.appDecommissionedSubText.tr(context: context),
|
||||||
|
style: TextStyle(fontSize: 14.f, color: AppColors.textColorLight, fontStyle: FontStyle.italic),
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
SizedBox(height: 48.h),
|
||||||
|
CustomButton(
|
||||||
|
text: LocaleKeys.downloadApp.tr(context: context),
|
||||||
|
onPressed: () {
|
||||||
|
if (Platform.isAndroid) {
|
||||||
|
Utils.openWebView(
|
||||||
|
url: "https://play.google.com/store/apps/details?id=com.ejada.hmg",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (Platform.isIOS) {
|
||||||
|
Utils.openWebView(
|
||||||
|
url: "https://itunes.apple.com/app/id733503978",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
backgroundColor: AppColors.primaryRedColor,
|
||||||
|
borderColor: AppColors.primaryRedColor,
|
||||||
|
textColor: AppColors.whiteColor,
|
||||||
|
fontSize: (isFoldable || isTablet) ? 12.f : 14.f,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
borderRadius: 12.r,
|
||||||
|
padding: EdgeInsets.symmetric(horizontal: 10.w),
|
||||||
|
// height: isTablet || isFoldable ? 46.h : 40.h,
|
||||||
|
height: 56.h,
|
||||||
|
iconColor: AppColors.primaryRedColor,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue