|
|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/app_assets.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/app_export.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/utils/utils.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/hmg_services/models/ui_models/hmg_services_component_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/presentation/hmg_services/services_view.dart';
|
|
|
|
|
@ -22,7 +23,7 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
|
route: AppRoutes.eReferralPage,
|
|
|
|
|
),
|
|
|
|
|
HmgServicesComponentModel(
|
|
|
|
|
12,
|
|
|
|
|
5,
|
|
|
|
|
"Comprehensive Checkup".needTranslation,
|
|
|
|
|
"".needTranslation,
|
|
|
|
|
AppAssets.comprehensiveCheckup,
|
|
|
|
|
@ -32,7 +33,7 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
|
route: AppRoutes.comprehensiveCheckupPage,
|
|
|
|
|
),
|
|
|
|
|
HmgServicesComponentModel(
|
|
|
|
|
12,
|
|
|
|
|
3,
|
|
|
|
|
"Home Health Care".needTranslation,
|
|
|
|
|
"".needTranslation,
|
|
|
|
|
AppAssets.emergency_services_icon,
|
|
|
|
|
@ -41,6 +42,21 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
route: AppRoutes.homeHealthCarePage,
|
|
|
|
|
),
|
|
|
|
|
HmgServicesComponentModel(
|
|
|
|
|
11,
|
|
|
|
|
"Virtual Tour".needTranslation,
|
|
|
|
|
"".needTranslation,
|
|
|
|
|
AppAssets.my_address,
|
|
|
|
|
true,
|
|
|
|
|
bgColor: Colors.orange,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
route: null,
|
|
|
|
|
onTap:(){
|
|
|
|
|
Utils.openWebView(
|
|
|
|
|
url: 'https://hmgwebservices.com/vt_mobile/html/index.html',
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -49,7 +65,7 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
|
title: "Explore Services".needTranslation,
|
|
|
|
|
isLeading: Navigator.canPop(context),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(24.h),
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 24.h),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
@ -60,9 +76,9 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
|
child: GridView.builder(
|
|
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
|
crossAxisCount: 3, // 4 icons per row
|
|
|
|
|
crossAxisSpacing: 16.w,
|
|
|
|
|
mainAxisSpacing: 24.h,
|
|
|
|
|
childAspectRatio: 0.75,
|
|
|
|
|
crossAxisSpacing: 24.w,
|
|
|
|
|
mainAxisSpacing: 0.h,
|
|
|
|
|
childAspectRatio: 0.85,
|
|
|
|
|
),
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
|