|
|
|
|
@ -23,6 +23,7 @@ import 'package:diplomaticquarterapp/routes.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/services)contaniner.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
@ -33,7 +34,7 @@ class AllHabibMedicalService extends StatefulWidget {
|
|
|
|
|
//TODO
|
|
|
|
|
final Function goToMyProfile;
|
|
|
|
|
|
|
|
|
|
AllHabibMedicalService({Key key, this.goToMyProfile});
|
|
|
|
|
AllHabibMedicalService({Key key, this.goToMyProfile});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
_AllHabibMedicalServiceState createState() => _AllHabibMedicalServiceState();
|
|
|
|
|
@ -66,38 +67,51 @@ class _AllHabibMedicalServiceState extends State<AllHabibMedicalService> {
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(8),
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
height: 190,
|
|
|
|
|
height: 150,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
image: DecorationImage(
|
|
|
|
|
image: ExactAssetImage('assets/images/timeline_bg.png'),
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
image: DecorationImage(
|
|
|
|
|
image: ExactAssetImage('assets/images/Weather_img.png'),
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
),
|
|
|
|
|
borderRadius: BorderRadius.circular(8.0)),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
'Health Weather Indicators',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.healthWeatherIndicators,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 22.0,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 35.0,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'Health Tips Based On Current Weather',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).healthTipsBasedOnCurrentWeather,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset('assets/images/Weather_ico.png',width: 80,height: 80,),
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).moreDetails,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
@ -109,16 +123,7 @@ class _AllHabibMedicalServiceState extends State<AllHabibMedicalService> {
|
|
|
|
|
'assets/images/new-design/my_file_bottom_bar.png',
|
|
|
|
|
title: TranslationBase.of(context).myMedicalFile,
|
|
|
|
|
),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: LiveCareHome(),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
imageLocation: 'assets/images/new-design/liveCare_ar_bg.png',
|
|
|
|
|
title: TranslationBase.of(context).livecare,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
@ -143,15 +148,7 @@ class _AllHabibMedicalServiceState extends State<AllHabibMedicalService> {
|
|
|
|
|
'assets/images/al-habib_online_payment_service_icon.png',
|
|
|
|
|
title: TranslationBase.of(context).onlinePaymentService,
|
|
|
|
|
),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(),
|
|
|
|
|
),
|
|
|
|
|
imageLocation:
|
|
|
|
|
'assets/images/al-habib_online_payment_service_icon.png',
|
|
|
|
|
title: 'Covid-19- Drive-Thru Test',
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
@ -166,37 +163,7 @@ class _AllHabibMedicalServiceState extends State<AllHabibMedicalService> {
|
|
|
|
|
imageLocation: 'assets/images/emergency_service_image.png',
|
|
|
|
|
title: TranslationBase.of(context).emergencyService,
|
|
|
|
|
),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: ParkingPage(),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
imageLocation: 'assets/images/pharmacy_logo.png',
|
|
|
|
|
title: 'Pharmacy'),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: InsuranceUpdate(),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
imageLocation:
|
|
|
|
|
'assets/images/medical/insurance_card_icon.png',
|
|
|
|
|
title: TranslationBase.of(context).updateInsurance,
|
|
|
|
|
),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: authUser.patientID == null
|
|
|
|
|
? EReferralIndexPage()
|
|
|
|
|
: EReferralPage()),
|
|
|
|
|
),
|
|
|
|
|
imageLocation: 'assets/images/ereferral_service_icon.png',
|
|
|
|
|
title: 'E-Referral',
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
@ -208,15 +175,7 @@ class _AllHabibMedicalServiceState extends State<AllHabibMedicalService> {
|
|
|
|
|
'assets/images/new-design/family_menu_icon_red.png',
|
|
|
|
|
title: 'My Family',
|
|
|
|
|
),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(page: ChildVaccinesPage()),
|
|
|
|
|
),
|
|
|
|
|
imageLocation:
|
|
|
|
|
'assets/images/new-design/children_vaccines_icon.png',
|
|
|
|
|
title: 'Child Vaccines',
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
@ -228,61 +187,7 @@ class _AllHabibMedicalServiceState extends State<AllHabibMedicalService> {
|
|
|
|
|
'assets/images/new-design/upcoming_icon_bottom_bar.png',
|
|
|
|
|
title: TranslationBase.of(context).todoList,
|
|
|
|
|
),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(page: SymptomInfo()),
|
|
|
|
|
),
|
|
|
|
|
imageLocation: 'assets/images/new-design/body_icon.png',
|
|
|
|
|
title: 'Symptom Checker'),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(page: BloodDonationPage()),
|
|
|
|
|
),
|
|
|
|
|
imageLocation: 'assets/images/new-design/blood_icon.png',
|
|
|
|
|
title: 'Blood Donation',
|
|
|
|
|
),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: (HealthCalculators()),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
imageLocation:
|
|
|
|
|
'assets/images/new-design/health_calculator_icon.png',
|
|
|
|
|
title: 'Health Calculators',
|
|
|
|
|
),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: HealthConverter(),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
imageLocation:
|
|
|
|
|
'assets/images/new-design/health_convertor_icon.png',
|
|
|
|
|
title: 'Health Converter',
|
|
|
|
|
),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: H2OPageIndexPage(),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
imageLocation: 'assets/images/new-design/water_icon.png',
|
|
|
|
|
title: 'H2O',
|
|
|
|
|
),
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(),
|
|
|
|
|
),
|
|
|
|
|
imageLocation: 'assets/images/new-design/smartwatch_icon.png',
|
|
|
|
|
title: TranslationBase.of(context).smartWatches,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
ServicesContainer(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
|