|
|
|
@ -1,26 +1,35 @@
|
|
|
|
import 'package:diplomaticquarterapp/config/size_config.dart';
|
|
|
|
import 'package:diplomaticquarterapp/config/size_config.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/core/service/AuthenticatedUserObject.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/dashboard_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/dashboard_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/ComprehensiveMedicalCheckup/cmc_index_page.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/toDoCountProviderModel.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/HomeHealthCare/home_health_care_index_page.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/all_habib_medical_service_page.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/all_habib_medical_service_page.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/ContactUs/contact_us_page.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/ContactUs/contact_us_page.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/Covid-DriveThru/covid-drivethru-location.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/Covid-DriveThru/covid-drivethru-location.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/ErService/ErOptions.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/MyAppointments.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/livecare/livecare_home.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/insurance/insurance_card_screen.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/doctor/doctor_home_page.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/labs/labs_home_page.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/prescriptions/prescriptions_home_page.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/radiology/radiology_home_page.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/vital_sign/vital_sign_details_screen.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/paymentService/payment_service.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/paymentService/payment_service.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/medicine_search_screen.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/services/clinic_services/get_clinic_service.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/medical/medical_profile_item.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
|
|
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
|
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import '../../locator.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class HomePage extends StatefulWidget {
|
|
|
|
class HomePage extends StatefulWidget {
|
|
|
|
final Function goToMyProfile;
|
|
|
|
final Function goToMyProfile;
|
|
|
|
|
|
|
|
|
|
|
|
@ -31,9 +40,22 @@ class HomePage extends StatefulWidget {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class _HomePageState extends State<HomePage> {
|
|
|
|
class _HomePageState extends State<HomePage> {
|
|
|
|
|
|
|
|
var toDoProvider;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
|
|
|
void initState() {
|
|
|
|
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
|
|
|
|
|
|
|
|
getToDoCount();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
super.initState();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
AuthenticatedUserObject authenticatedUserObject = locator<AuthenticatedUserObject>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
|
|
|
|
toDoProvider = Provider.of<ToDoCountProviderModel>(context);
|
|
|
|
return BaseView<DashboardViewModel>(
|
|
|
|
return BaseView<DashboardViewModel>(
|
|
|
|
onModelReady: (model) => model.getPatientRadOrders(),
|
|
|
|
onModelReady: (model) => model.getPatientRadOrders(),
|
|
|
|
builder: (_, model, wi) => AppScaffold(
|
|
|
|
builder: (_, model, wi) => AppScaffold(
|
|
|
|
@ -50,11 +72,11 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
height: 210,
|
|
|
|
height: 100,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: DecorationImage(
|
|
|
|
image: DecorationImage(
|
|
|
|
image: ExactAssetImage(
|
|
|
|
image: ExactAssetImage(
|
|
|
|
'assets/images/dashboard_top_bg.png'),
|
|
|
|
'assets/images/dq_home_page_bg_image.png'),
|
|
|
|
fit: BoxFit.cover),
|
|
|
|
fit: BoxFit.cover),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Stack(
|
|
|
|
child: Stack(
|
|
|
|
@ -66,135 +88,18 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
width:
|
|
|
|
width:
|
|
|
|
MediaQuery.of(context).size.width * 0.8,
|
|
|
|
MediaQuery.of(context).size.width * 0.8,
|
|
|
|
child: Row(
|
|
|
|
child: Container(),
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
height: 120,
|
|
|
|
|
|
|
|
padding: EdgeInsets.all(5),
|
|
|
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
image: DecorationImage(
|
|
|
|
|
|
|
|
image: AssetImage(
|
|
|
|
|
|
|
|
"assets/images/new-design/covid_bg_transparent.png"),
|
|
|
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
color:
|
|
|
|
|
|
|
|
Colors.white.withOpacity(0.3),
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
|
|
|
Radius.circular(5))),
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Text("COVID-19 TEST",
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
fontWeight:
|
|
|
|
|
|
|
|
FontWeight.bold,
|
|
|
|
|
|
|
|
fontSize: 18.0)),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
|
|
|
top: 15.0, left: 3.5, right: 3.5),
|
|
|
|
|
|
|
|
child: SvgPicture.asset(
|
|
|
|
|
|
|
|
'assets/images/new-design/covid-19-car.svg',
|
|
|
|
|
|
|
|
width: 45.0,
|
|
|
|
|
|
|
|
height: 45.0),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
|
|
|
left: 10.0,
|
|
|
|
|
|
|
|
top: 10.0),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Text("Drive-Thru",
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
color: Colors
|
|
|
|
|
|
|
|
.white,
|
|
|
|
|
|
|
|
fontWeight:
|
|
|
|
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.bold,
|
|
|
|
|
|
|
|
fontSize:
|
|
|
|
|
|
|
|
16.0)),
|
|
|
|
|
|
|
|
ButtonTheme(
|
|
|
|
|
|
|
|
shape:
|
|
|
|
|
|
|
|
RoundedRectangleBorder(
|
|
|
|
|
|
|
|
borderRadius:
|
|
|
|
|
|
|
|
BorderRadius
|
|
|
|
|
|
|
|
.circular(
|
|
|
|
|
|
|
|
5.0),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
minWidth: MediaQuery.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.width *
|
|
|
|
|
|
|
|
0.15,
|
|
|
|
|
|
|
|
height: 25.0,
|
|
|
|
|
|
|
|
child: RaisedButton(
|
|
|
|
|
|
|
|
color: Colors
|
|
|
|
|
|
|
|
.red[800],
|
|
|
|
|
|
|
|
textColor:
|
|
|
|
|
|
|
|
Colors.white,
|
|
|
|
|
|
|
|
disabledTextColor:
|
|
|
|
|
|
|
|
Colors.white,
|
|
|
|
|
|
|
|
disabledColor:
|
|
|
|
|
|
|
|
new Color(
|
|
|
|
|
|
|
|
0xFFbcc2c4),
|
|
|
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|
|
|
navigateToCovidDriveThru();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
"BOOK NOW",
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontSize:
|
|
|
|
|
|
|
|
12.0)),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () => Navigator.push(context,
|
|
|
|
|
|
|
|
FadePage(page: LiveCareHome())),
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
height: 120,
|
|
|
|
|
|
|
|
padding: EdgeInsets.all(15),
|
|
|
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
color: Colors.white
|
|
|
|
|
|
|
|
.withOpacity(0.3),
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
|
|
|
Radius.circular(5))),
|
|
|
|
|
|
|
|
child: SvgPicture.asset(
|
|
|
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
|
|
|
? 'assets/images/new-design/livecare_arabic_logo.svg'
|
|
|
|
|
|
|
|
: 'assets/images/new-design/liveCare_white_logo.svg',
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(width: double.infinity, height: 80)
|
|
|
|
Container(width: double.infinity, height:projectViewModel.isArabic ? 120:110),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
Positioned(
|
|
|
|
top: 155,
|
|
|
|
top: 40,
|
|
|
|
left: MediaQuery.of(context).size.width *
|
|
|
|
left: MediaQuery.of(context).size.width *
|
|
|
|
(MediaQuery.of(context).orientation ==
|
|
|
|
(MediaQuery.of(context).orientation ==
|
|
|
|
Orientation.landscape
|
|
|
|
Orientation.landscape
|
|
|
|
@ -205,12 +110,12 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
Orientation.landscape
|
|
|
|
Orientation.landscape
|
|
|
|
? 0.02
|
|
|
|
? 0.02
|
|
|
|
: 0.03),
|
|
|
|
: 0.03),
|
|
|
|
child: (!model.isLogin && projectViewModel.user == null)
|
|
|
|
child: (!authenticatedUserObject.isLogin && projectViewModel.user == null)
|
|
|
|
? Container(
|
|
|
|
? Container(
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
height: 125,
|
|
|
|
height: 160,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: HexColor('#A59E9E'),
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(
|
|
|
|
color: Colors.transparent, width: 0.5),
|
|
|
|
color: Colors.transparent, width: 0.5),
|
|
|
|
@ -230,7 +135,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context).myMedicalFile,
|
|
|
|
TranslationBase.of(context).myMedicalFile,
|
|
|
|
color: Colors.black87,
|
|
|
|
color: Colors.white,
|
|
|
|
bold: true,
|
|
|
|
bold: true,
|
|
|
|
fontSize: 23,
|
|
|
|
fontSize: 23,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -240,23 +145,26 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context)
|
|
|
|
TranslationBase.of(context)
|
|
|
|
.myMedicalFileSubTitle,
|
|
|
|
.myMedicalFileSubTitle,
|
|
|
|
color: Colors.black,
|
|
|
|
color: Colors.white,
|
|
|
|
fontSize: 16,
|
|
|
|
fontSize: 16,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Align(
|
|
|
|
Align(
|
|
|
|
alignment: projectViewModel.isArabic
|
|
|
|
alignment: projectViewModel.isArabic
|
|
|
|
? Alignment.bottomRight
|
|
|
|
? Alignment.bottomLeft
|
|
|
|
: Alignment.bottomLeft,
|
|
|
|
: Alignment.bottomRight,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
widget.goToMyProfile();
|
|
|
|
widget.goToMyProfile();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.all(2),
|
|
|
|
margin: EdgeInsets.all(2),
|
|
|
|
width: 90,
|
|
|
|
width: MediaQuery.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.width *
|
|
|
|
|
|
|
|
0.30,
|
|
|
|
height: 30,
|
|
|
|
height: 30,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: HexColor('#D81A2E'),
|
|
|
|
color: Colors.white,
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(
|
|
|
|
color: Colors.transparent,
|
|
|
|
color: Colors.transparent,
|
|
|
|
@ -268,7 +176,8 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
child: Texts(
|
|
|
|
child: Texts(
|
|
|
|
TranslationBase.of(context)
|
|
|
|
TranslationBase.of(context)
|
|
|
|
.viewMore,
|
|
|
|
.viewMore,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Theme.of(context)
|
|
|
|
|
|
|
|
.primaryColor,
|
|
|
|
fontSize: 12,
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -281,9 +190,9 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: Container(
|
|
|
|
: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
height: 130,
|
|
|
|
height: projectViewModel.isArabic ? 180 : 150,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: HexColor('#A59E9E'),
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(
|
|
|
|
color: Colors.transparent, width: 0.5),
|
|
|
|
color: Colors.transparent, width: 0.5),
|
|
|
|
@ -294,9 +203,12 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
'assets/images/bg_graphic.png'),
|
|
|
|
'assets/images/bg_graphic.png'),
|
|
|
|
fit: BoxFit.cover),
|
|
|
|
fit: BoxFit.cover),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
@ -328,7 +240,8 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
'${DateUtil.getMonthDayYearDateFormatted(model.user.dateofBirthDataTime)} ,${model.user.genderDescription} ${model.user.ageDesc}',
|
|
|
|
'${DateUtil.getMonthDayYearDateFormatted(model.user.dateofBirthDataTime)} ,${model.user.genderDescription} ${model.user.ageDesc}',
|
|
|
|
color: Colors.grey[100],
|
|
|
|
color: Colors.grey[100],
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
fontWeight:
|
|
|
|
|
|
|
|
FontWeight.normal,
|
|
|
|
fontSize: 14,
|
|
|
|
fontSize: 14,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -340,10 +253,13 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.all(2),
|
|
|
|
margin: EdgeInsets.all(2),
|
|
|
|
width: 90,
|
|
|
|
width: MediaQuery.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.width *
|
|
|
|
|
|
|
|
0.30,
|
|
|
|
height: 30,
|
|
|
|
height: 30,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: HexColor('#D81A2E'),
|
|
|
|
color: Colors.white,
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(
|
|
|
|
color: Colors.transparent,
|
|
|
|
color: Colors.transparent,
|
|
|
|
@ -356,8 +272,10 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
child: Texts(
|
|
|
|
child: Texts(
|
|
|
|
TranslationBase.of(context)
|
|
|
|
TranslationBase.of(context)
|
|
|
|
.viewMore,
|
|
|
|
.viewMore,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Theme.of(context)
|
|
|
|
|
|
|
|
.primaryColor,
|
|
|
|
fontSize: 12,
|
|
|
|
fontSize: 12,
|
|
|
|
|
|
|
|
bold: true,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -365,22 +283,34 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
//crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
|
|
|
//mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
|
|
|
CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
Image.asset(
|
|
|
|
'assets/images/height_icon.png',
|
|
|
|
'assets/images/height_icon.png',
|
|
|
|
width: 35,
|
|
|
|
width: 30,
|
|
|
|
height: 40,
|
|
|
|
height: 55,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
"${model.heightCm}",
|
|
|
|
"${model.heightCm}",
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
bold: true,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
|
|
|
TranslationBase.of(context).height,
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -391,16 +321,28 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
|
|
|
CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
Image.asset(
|
|
|
|
'assets/images/weight_icon.png',
|
|
|
|
'assets/images/test-weight.png',
|
|
|
|
width: 25,
|
|
|
|
width: 30,
|
|
|
|
height: 40,
|
|
|
|
height: 55,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
'${model.weightKg}',
|
|
|
|
'${model.weightKg}',
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
bold: true,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
|
|
|
TranslationBase.of(context).weight,
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -410,17 +352,26 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
Image.asset(
|
|
|
|
'assets/images/blood_icon.png',
|
|
|
|
'assets/images/blood-drop.png',
|
|
|
|
width: 35,
|
|
|
|
width: 35,
|
|
|
|
height: 40,
|
|
|
|
height: 40,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
'${model.bloadType}',
|
|
|
|
'${model.bloadType}',
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
|
|
|
TranslationBase.of(context).bloodType,
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -432,6 +383,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
@ -439,12 +391,13 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
DashboardItem(
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
child: DashboardItem(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
page: HomeHealthCareIndexPage(),
|
|
|
|
page: VitalSignDetailsScreen(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -453,64 +406,92 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
'assets/images/home_health_care_icon.png',
|
|
|
|
|
|
|
|
width: 50,
|
|
|
|
Container(
|
|
|
|
height: 50,
|
|
|
|
width: 60,
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(12)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
child: Center(child: Image.asset('assets/images/vital_sign_icon.png',
|
|
|
|
height: 3,
|
|
|
|
width: 80,
|
|
|
|
|
|
|
|
height: 50,
|
|
|
|
|
|
|
|
fit: BoxFit.contain,)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 20,),
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context)
|
|
|
|
TranslationBase.of(context)
|
|
|
|
.homeHealthCareService,
|
|
|
|
.vitalSigns,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
bold: true,
|
|
|
|
bold: true,
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.7,
|
|
|
|
fontSize: projectViewModel.isArabic? SizeConfig.textMultiplier * 1.5 :SizeConfig.textMultiplier * 1.7,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
height: MediaQuery.of(context).size.width * 0.4,
|
|
|
|
margin: 4,
|
|
|
|
|
|
|
|
height: 170,
|
|
|
|
imageName: 'home_healthcare_service_bg.png',
|
|
|
|
imageName: 'home_healthcare_service_bg.png',
|
|
|
|
opacity: 0.5,
|
|
|
|
opacity: 1.0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
DashboardItem(
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
child: DashboardItem(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.push(
|
|
|
|
|
|
|
|
context,
|
|
|
|
|
|
|
|
FadePage(
|
|
|
|
|
|
|
|
page: MedicineSearch(),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
opacity: 1.0,
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Padding(
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
'assets/images/pharmacy_logo.png',
|
|
|
|
Container(
|
|
|
|
width: 40,
|
|
|
|
width: 50,
|
|
|
|
height: 40,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(12)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
child: Center(child: Image.asset('assets/images/search_medicine_icon.png',
|
|
|
|
height: 20,
|
|
|
|
width: 50,
|
|
|
|
|
|
|
|
height: 50,
|
|
|
|
|
|
|
|
fit: BoxFit.contain,)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 20,),
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context).onlinePharmacy,
|
|
|
|
TranslationBase.of(context).searchMedicine,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
bold: true,
|
|
|
|
bold: true,
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.7,
|
|
|
|
fontSize: projectViewModel.isArabic? SizeConfig.textMultiplier * 1.5 :SizeConfig.textMultiplier * 1.7,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
height: MediaQuery.of(context).size.width * 0.4,
|
|
|
|
margin: 4,
|
|
|
|
|
|
|
|
height: 170,
|
|
|
|
imageName: 'al-habib_onlne_pharmacy_bg.png',
|
|
|
|
imageName: 'al-habib_onlne_pharmacy_bg.png',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
DashboardItem(
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
child: DashboardItem(opacity: 1.0,
|
|
|
|
onTap: (){
|
|
|
|
onTap: (){
|
|
|
|
Navigator.push(
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
page: CMCIndexPage(),
|
|
|
|
page: PaymentService(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -519,28 +500,34 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
'assets/images/comprehensive_medical_checkup_logo.png',
|
|
|
|
Container(
|
|
|
|
width: 50,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
height: 50,
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(12)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
child: Center(child: Image.asset('assets/images/online_payment_icon.png',
|
|
|
|
height: 3,
|
|
|
|
width: 80,
|
|
|
|
|
|
|
|
height: 50,
|
|
|
|
|
|
|
|
fit: BoxFit.contain,)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context).emergencyService,
|
|
|
|
TranslationBase.of(context).onlinePaymentService,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
bold: true,
|
|
|
|
bold: true,
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.7,
|
|
|
|
fontSize: projectViewModel.isArabic? SizeConfig.textMultiplier * 1.5 :SizeConfig.textMultiplier * 1.7,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
height: MediaQuery.of(context).size.width * 0.4,
|
|
|
|
margin: 4,
|
|
|
|
color: HexColor("#747C80"),
|
|
|
|
height: 170,
|
|
|
|
imageName: 'emergency_service_image.png',
|
|
|
|
imageName: 'online_payments_bg.png',
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -548,121 +535,123 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 8,
|
|
|
|
height: 8,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
|
|
|
|
onTap: () =>
|
|
|
|
|
|
|
|
Navigator.push(context, FadePage(page: PaymentService())),
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
margin: EdgeInsets.only(left: 15, right: 15),
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: MediaQuery.of(context).size.width * 0.29,
|
|
|
|
margin: EdgeInsets.only(left: 10, right: 10),
|
|
|
|
child: Center(
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
Row(
|
|
|
|
'assets/images/al-habib_online_payment_service_icon.png',
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
height: 55,
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
//flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.push(
|
|
|
|
|
|
|
|
context,
|
|
|
|
|
|
|
|
FadePage(
|
|
|
|
|
|
|
|
page: MyAppointments(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
);
|
|
|
|
height: 5,
|
|
|
|
},
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.myAppointments,
|
|
|
|
|
|
|
|
imagePath: 'my_appointment_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context).myAppointmentsList,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Texts(
|
|
|
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
|
|
|
.onlinePaymentService,
|
|
|
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
|
|
|
color: Colors.black87,
|
|
|
|
|
|
|
|
bold: false,
|
|
|
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () => Navigator.push(context,
|
|
|
|
|
|
|
|
FadePage(page: LabsHomePage())),
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context).lab,
|
|
|
|
|
|
|
|
imagePath: 'lab_result_icon.png',
|
|
|
|
|
|
|
|
subTitle:
|
|
|
|
|
|
|
|
TranslationBase.of(context).lab,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
height: MediaQuery.of(context).size.width * 0.4,
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(6.0),
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Expanded(
|
|
|
|
child: Center(
|
|
|
|
flex: 1,
|
|
|
|
child: Padding(
|
|
|
|
child: InkWell(
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
onTap: () => Navigator.push(context,
|
|
|
|
child: Column(
|
|
|
|
FadePage(page: RadiologyHomePage())),
|
|
|
|
children: <Widget>[
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
Image.asset(
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
'assets/images/ereferral_service_icon.png',
|
|
|
|
.radiology,
|
|
|
|
width: 50,
|
|
|
|
imagePath: 'radiology_icon.png',
|
|
|
|
height: 55,
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.radiologySubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 10,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Texts(
|
|
|
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
|
|
|
.offersAndPackages,
|
|
|
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
|
|
|
color: Colors.black87,
|
|
|
|
|
|
|
|
bold: false,
|
|
|
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.push(
|
|
|
|
|
|
|
|
context,
|
|
|
|
|
|
|
|
FadePage(
|
|
|
|
|
|
|
|
page: HomePrescriptionsPage(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.medicines,
|
|
|
|
|
|
|
|
imagePath: 'prescription_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.medicinesSubtitle,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
width: MediaQuery.of(context).size.width * 0.29,
|
|
|
|
),
|
|
|
|
height: MediaQuery.of(context).size.width * 0.4,
|
|
|
|
),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
Expanded(
|
|
|
|
borderRadius: BorderRadius.circular(6.0),
|
|
|
|
flex: 1,
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
)),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.29,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
page: ErOptions(
|
|
|
|
page: DoctorHomePage(),
|
|
|
|
isAppbar: true,
|
|
|
|
|
|
|
|
))),
|
|
|
|
|
|
|
|
child: Center(
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Image.asset(
|
|
|
|
|
|
|
|
'assets/images/Dr_Schedule_report.png',
|
|
|
|
|
|
|
|
width: 50,
|
|
|
|
|
|
|
|
height: 50,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
);
|
|
|
|
height: 10,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
Texts(
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
TranslationBase.of(context)
|
|
|
|
.myDoctor,
|
|
|
|
.emergencyServices,
|
|
|
|
imagePath: 'doctor_icon.png',
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
color: Colors.black87,
|
|
|
|
.myDoctorSubtitle,
|
|
|
|
bold: false,
|
|
|
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
|
|
|
FadePage(page: InsuranceCard()));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.insurance,
|
|
|
|
|
|
|
|
imagePath: 'insurance_card_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.insuranceSubtitle,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
height: MediaQuery.of(context).size.width * 0.4,
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(6.0),
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
@ -674,6 +663,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
DashboardItem(
|
|
|
|
DashboardItem(
|
|
|
|
|
|
|
|
opacity:1.0,
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
@ -683,11 +673,10 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context).hMGService,
|
|
|
|
TranslationBase.of(context).hMGService,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
bold: true,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context)
|
|
|
|
TranslationBase.of(context).viewAllHabibMedicalService,
|
|
|
|
.viewAllHabibMedicalService,
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
fontSize: 10,
|
|
|
|
fontSize: 10,
|
|
|
|
@ -698,23 +687,21 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context).viewMore,
|
|
|
|
TranslationBase.of(context).viewMore,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
//fontWeight: FontWeight.normal,
|
|
|
|
bold: true,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
height: 100,
|
|
|
|
height: 100,
|
|
|
|
imageName: 'contact_us_bg.png',
|
|
|
|
imageName: 'ask_doctor_bg.png',
|
|
|
|
opacity: 0.5,
|
|
|
|
//color: Colors.grey[700],
|
|
|
|
color: Colors.grey[700],
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.45,
|
|
|
|
width: MediaQuery.of(context).size.width * 0.45,
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
context, FadePage(page: AllHabibMedicalService())),
|
|
|
|
context, FadePage(page: AllHabibMedicalService(goToMyProfile: widget.goToMyProfile,))),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
DashboardItem(
|
|
|
|
DashboardItem(
|
|
|
|
|
|
|
|
opacity:1.0,
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
// Navigator.push(
|
|
|
|
|
|
|
|
// context, FadePage(page: FeedbackHomePage()));
|
|
|
|
|
|
|
|
Navigator.push(
|
|
|
|
Navigator.push(
|
|
|
|
context, FadePage(page: ContactUsPage()));
|
|
|
|
context, FadePage(page: ContactUsPage()));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -727,13 +714,13 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context).contactUs,
|
|
|
|
TranslationBase.of(context).contactUs,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
bold: true,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context).viewAllWaysReachUs,
|
|
|
|
TranslationBase.of(context).viewAllWaysReachUs,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
fontSize: 10,
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.0 ,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: Container(),
|
|
|
|
child: Container(),
|
|
|
|
@ -741,14 +728,13 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context).viewMore,
|
|
|
|
TranslationBase.of(context).viewMore,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
bold: true,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
height: 100,
|
|
|
|
height: 100,
|
|
|
|
imageName: 'contact_us_bg.png',
|
|
|
|
imageName: 'rectangle.png',
|
|
|
|
opacity: 0.5,
|
|
|
|
|
|
|
|
color: Colors.grey[700],
|
|
|
|
color: Colors.grey[700],
|
|
|
|
width: MediaQuery.of(context).size.width * 0.45,
|
|
|
|
width: MediaQuery.of(context).size.width * 0.45,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -756,7 +742,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 80,
|
|
|
|
height: 120,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -770,6 +756,23 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
Navigator.push(context,
|
|
|
|
Navigator.push(context,
|
|
|
|
MaterialPageRoute(builder: (context) => CovidDrivethruLocation()));
|
|
|
|
MaterialPageRoute(builder: (context) => CovidDrivethruLocation()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getToDoCount() {
|
|
|
|
|
|
|
|
toDoProvider.setState(0);
|
|
|
|
|
|
|
|
ClinicListService service = new ClinicListService();
|
|
|
|
|
|
|
|
service.getActiveAppointmentNo(context).then((res) {
|
|
|
|
|
|
|
|
print(res['AppointmentActiveNumber']);
|
|
|
|
|
|
|
|
if (res['MessageStatus'] == 1) {
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
toDoProvider.setState(res['AppointmentActiveNumber']);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
AppToast.showErrorToast(message: res['ErrorEndUserMessage']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
|
|
|
print(err);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class DashboardItem extends StatelessWidget {
|
|
|
|
class DashboardItem extends StatelessWidget {
|
|
|
|
@ -782,7 +785,7 @@ class DashboardItem extends StatelessWidget {
|
|
|
|
this.width,
|
|
|
|
this.width,
|
|
|
|
this.height,
|
|
|
|
this.height,
|
|
|
|
this.color,
|
|
|
|
this.color,
|
|
|
|
this.opacity = 0.4})
|
|
|
|
this.opacity = 1.0,this.icon,this.margin=0})
|
|
|
|
: super(key: key);
|
|
|
|
: super(key: key);
|
|
|
|
final bool hasBorder;
|
|
|
|
final bool hasBorder;
|
|
|
|
final String imageName;
|
|
|
|
final String imageName;
|
|
|
|
@ -792,6 +795,8 @@ class DashboardItem extends StatelessWidget {
|
|
|
|
final double height;
|
|
|
|
final double height;
|
|
|
|
final Color color;
|
|
|
|
final Color color;
|
|
|
|
final double opacity;
|
|
|
|
final double opacity;
|
|
|
|
|
|
|
|
final double margin;
|
|
|
|
|
|
|
|
final Widget icon;
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
@ -808,7 +813,7 @@ class DashboardItem extends StatelessWidget {
|
|
|
|
color: !hasBorder
|
|
|
|
color: !hasBorder
|
|
|
|
? color != null
|
|
|
|
? color != null
|
|
|
|
? color
|
|
|
|
? color
|
|
|
|
: HexColor('#050705').withOpacity(opacity)
|
|
|
|
: Colors.black.withOpacity(opacity)
|
|
|
|
: Colors.white,
|
|
|
|
: Colors.white,
|
|
|
|
borderRadius: BorderRadius.circular(6.0),
|
|
|
|
borderRadius: BorderRadius.circular(6.0),
|
|
|
|
border: hasBorder
|
|
|
|
border: hasBorder
|
|
|
|
@ -819,10 +824,11 @@ class DashboardItem extends StatelessWidget {
|
|
|
|
image: ExactAssetImage('assets/images/$imageName'),
|
|
|
|
image: ExactAssetImage('assets/images/$imageName'),
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
colorFilter: new ColorFilter.mode(
|
|
|
|
colorFilter: new ColorFilter.mode(
|
|
|
|
Colors.black.withOpacity(0.2), BlendMode.dstIn),
|
|
|
|
Colors.black.withOpacity(opacity), BlendMode.dstIn),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: null,
|
|
|
|
: icon,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
margin: EdgeInsets.all(margin),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: child,
|
|
|
|
child: child,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|