|
|
|
@ -52,6 +52,7 @@ import 'package:hmg_patient_app_new/presentation/todo_section/ancillary_procedur
|
|
|
|
import 'package:hmg_patient_app_new/presentation/todo_section/widgets/ancillary_orders_list.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/todo_section/widgets/ancillary_orders_list.dart';
|
|
|
|
import 'package:hmg_patient_app_new/routes/app_routes.dart';
|
|
|
|
import 'package:hmg_patient_app_new/routes/app_routes.dart';
|
|
|
|
import 'package:hmg_patient_app_new/services/cache_service.dart';
|
|
|
|
import 'package:hmg_patient_app_new/services/cache_service.dart';
|
|
|
|
|
|
|
|
import 'package:hmg_patient_app_new/services/zoom_service.dart';
|
|
|
|
import 'package:hmg_patient_app_new/theme/colors.dart';
|
|
|
|
import 'package:hmg_patient_app_new/theme/colors.dart';
|
|
|
|
import 'package:hmg_patient_app_new/widgets/buttons/custom_button.dart';
|
|
|
|
import 'package:hmg_patient_app_new/widgets/buttons/custom_button.dart';
|
|
|
|
import 'package:hmg_patient_app_new/widgets/chip/app_custom_chip_widget.dart';
|
|
|
|
import 'package:hmg_patient_app_new/widgets/chip/app_custom_chip_widget.dart';
|
|
|
|
@ -96,7 +97,6 @@ class _LandingPageState extends State<LandingPage> {
|
|
|
|
super.dispose();
|
|
|
|
super.dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
authVM = context.read<AuthenticationViewModel>();
|
|
|
|
authVM = context.read<AuthenticationViewModel>();
|
|
|
|
@ -244,7 +244,7 @@ class _LandingPageState extends State<LandingPage> {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: SizedBox.shrink(),
|
|
|
|
: SizedBox.shrink(),
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.indoor_nav_icon, height: 24.h, width: 24.h).onPress(() {
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.indoor_nav_icon, height: 24.h, width: 24.w).onPress(() {
|
|
|
|
openIndoorNavigationBottomSheet(context);
|
|
|
|
openIndoorNavigationBottomSheet(context);
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.contact_icon, height: 24.h, width: 24.h).onPress(() {
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.contact_icon, height: 24.h, width: 24.h).onPress(() {
|
|
|
|
@ -257,7 +257,7 @@ class _LandingPageState extends State<LandingPage> {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
!appState.isAuthenticated
|
|
|
|
!appState.isAuthenticated
|
|
|
|
? Utils.buildSvgWithAssets(icon: AppAssets.changeLanguageHomePageIcon, height: 18.h, width: 18.h).onPress(() {
|
|
|
|
? Utils.buildSvgWithAssets(icon: AppAssets.changeLanguageHomePageIcon, height: 24.h, width: 24.h).onPress(() {
|
|
|
|
context.setLocale(appState.isArabic() ? Locale('en', 'US') : Locale('ar', 'SA'));
|
|
|
|
context.setLocale(appState.isArabic() ? Locale('en', 'US') : Locale('ar', 'SA'));
|
|
|
|
})
|
|
|
|
})
|
|
|
|
: SizedBox.shrink()
|
|
|
|
: SizedBox.shrink()
|
|
|
|
@ -321,7 +321,7 @@ class _LandingPageState extends State<LandingPage> {
|
|
|
|
LocaleKeys.appointmentsAndVisits.tr(context: context).toText16(weight: FontWeight.w600),
|
|
|
|
LocaleKeys.appointmentsAndVisits.tr(context: context).toText16(weight: FontWeight.w600),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
LocaleKeys.viewAll.tr(context: context).toText14(color: AppColors.primaryRedColor,weight: FontWeight.w500),
|
|
|
|
LocaleKeys.viewAll.tr(context: context).toText14(color: AppColors.primaryRedColor, weight: FontWeight.w500),
|
|
|
|
SizedBox(width: 2.h),
|
|
|
|
SizedBox(width: 2.h),
|
|
|
|
Icon(Icons.arrow_forward_ios, color: AppColors.primaryRedColor, size: 14.h),
|
|
|
|
Icon(Icons.arrow_forward_ios, color: AppColors.primaryRedColor, size: 14.h),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -422,8 +422,7 @@ class _LandingPageState extends State<LandingPage> {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: Container(
|
|
|
|
: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
decoration: RoundedRectangleBorder()
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.whiteColor, borderRadius: 24.r, hasShadow: true),
|
|
|
|
.toSmoothCornerDecoration(color: AppColors.whiteColor, borderRadius: 24.r, hasShadow: true),
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.all(16.h),
|
|
|
|
padding: EdgeInsets.all(16.h),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
@ -483,11 +482,7 @@ class _LandingPageState extends State<LandingPage> {
|
|
|
|
backgroundColor: AppColors.primaryRedColor.withValues(alpha: 0.10),
|
|
|
|
backgroundColor: AppColors.primaryRedColor.withValues(alpha: 0.10),
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Utils.buildSvgWithAssets(
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.appointment_checkin_icon, width: 24.h, height: 24.h, iconColor: AppColors.primaryRedColor),
|
|
|
|
icon: AppAssets.appointment_checkin_icon,
|
|
|
|
|
|
|
|
width: 24.h,
|
|
|
|
|
|
|
|
height: 24.h,
|
|
|
|
|
|
|
|
iconColor: AppColors.primaryRedColor),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(height: 8.h),
|
|
|
|
SizedBox(height: 8.h),
|
|
|
|
|