|
|
|
|
@ -83,7 +83,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(width: double.infinity, height: MediaQuery.of(context).size.height * 0.12),
|
|
|
|
|
Container(width: double.infinity, height: 125),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
|
@ -93,7 +93,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
child: (!model.isLogin && projectViewModel.user == null)
|
|
|
|
|
? Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.17,
|
|
|
|
|
height: 180,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
@ -166,7 +166,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.17,
|
|
|
|
|
height: projectViewModel.isArabic?180: 150,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
@ -184,7 +184,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
@ -289,7 +289,8 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, children: <Widget>[
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/images/test-weight.png',
|
|
|
|
|
width: 30,
|
|
|
|
|
@ -357,130 +358,144 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
DashboardItem(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignDetailsScreen(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,
|
|
|
|
|
Expanded(
|
|
|
|
|
child: DashboardItem(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignDetailsScreen(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
width: 60,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
borderRadius: BorderRadius.circular(12)
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
borderRadius: BorderRadius.circular(12)
|
|
|
|
|
),
|
|
|
|
|
child: Center(child: Icon(DQIcons.vital_sign_icon,size: 40,color: Theme.of(context).primaryColor,)),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.vitalSigns,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.5,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
child: Center(child: Image.asset('assets/images/vital_sign_icon.png',
|
|
|
|
|
width: 80,
|
|
|
|
|
height: 50,
|
|
|
|
|
fit: BoxFit.contain,)),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 20,),
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.vitalSigns,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: projectViewModel.isArabic? SizeConfig.textMultiplier * 1.5 :SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
margin: 4,
|
|
|
|
|
height: 170,
|
|
|
|
|
imageName: 'home_healthcare_service_bg.png',
|
|
|
|
|
opacity: 1.0,
|
|
|
|
|
),
|
|
|
|
|
height: MediaQuery.of(context).size.width * 0.35,
|
|
|
|
|
imageName: 'home_healthcare_service_bg.png',
|
|
|
|
|
opacity: 1.0,
|
|
|
|
|
),
|
|
|
|
|
DashboardItem(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: MedicineSearch(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
opacity: 1.0,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
borderRadius: BorderRadius.circular(12)
|
|
|
|
|
Expanded(
|
|
|
|
|
child: DashboardItem(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: MedicineSearch(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
opacity: 1.0,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
|
Container(
|
|
|
|
|
width: 50,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
borderRadius: BorderRadius.circular(12)
|
|
|
|
|
),
|
|
|
|
|
child: Center(child: Image.asset('assets/images/search_medicine_icon.png',
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,
|
|
|
|
|
fit: BoxFit.contain,)),
|
|
|
|
|
),
|
|
|
|
|
child: Center(child: Icon(DQIcons.search_medicine_icon,size: 40,color: Theme.of(context).primaryColor,),),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).searchMedicine,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.5,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
SizedBox(height: 20,),
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).searchMedicine,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: projectViewModel.isArabic? SizeConfig.textMultiplier * 1.5 :SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
margin: 4,
|
|
|
|
|
height: 170,
|
|
|
|
|
imageName: 'al-habib_onlne_pharmacy_bg.png',
|
|
|
|
|
),
|
|
|
|
|
height: MediaQuery.of(context).size.width * 0.35,
|
|
|
|
|
imageName: 'al-habib_onlne_pharmacy_bg.png',
|
|
|
|
|
),
|
|
|
|
|
DashboardItem(opacity: 1.0,
|
|
|
|
|
onTap: (){
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: PaymentService(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
// width: 50,
|
|
|
|
|
// height: 50,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
borderRadius: BorderRadius.circular(12)
|
|
|
|
|
Expanded(
|
|
|
|
|
child: DashboardItem(opacity: 1.0,
|
|
|
|
|
onTap: (){
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: PaymentService(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
|
Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
borderRadius: BorderRadius.circular(12)
|
|
|
|
|
),
|
|
|
|
|
child: Center(child: Image.asset('assets/images/online_payment_icon.png',
|
|
|
|
|
width: 80,
|
|
|
|
|
height: 50,
|
|
|
|
|
fit: BoxFit.contain,)),
|
|
|
|
|
),
|
|
|
|
|
child: Center(child: Icon(DQIcons.online_payment_icon,size: 40,color: Theme.of(context).primaryColor,)),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).onlinePaymentService,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).onlinePaymentService,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: projectViewModel.isArabic? SizeConfig.textMultiplier * 1.5 :SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
margin: 4,
|
|
|
|
|
height: 170,
|
|
|
|
|
imageName: 'online_payments_bg.png',
|
|
|
|
|
),
|
|
|
|
|
height: MediaQuery.of(context).size.width * 0.35,
|
|
|
|
|
//color: HexColor("#747C80"),
|
|
|
|
|
imageName: 'online_payments_bg.png',
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -724,7 +739,7 @@ class DashboardItem extends StatelessWidget {
|
|
|
|
|
this.width,
|
|
|
|
|
this.height,
|
|
|
|
|
this.color,
|
|
|
|
|
this.opacity = 1.0,this.icon})
|
|
|
|
|
this.opacity = 1.0,this.icon,this.margin=0})
|
|
|
|
|
: super(key: key);
|
|
|
|
|
final bool hasBorder;
|
|
|
|
|
final String imageName;
|
|
|
|
|
@ -734,6 +749,7 @@ class DashboardItem extends StatelessWidget {
|
|
|
|
|
final double height;
|
|
|
|
|
final Color color;
|
|
|
|
|
final double opacity;
|
|
|
|
|
final double margin;
|
|
|
|
|
final Widget icon;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -766,6 +782,7 @@ class DashboardItem extends StatelessWidget {
|
|
|
|
|
)
|
|
|
|
|
: icon,
|
|
|
|
|
),
|
|
|
|
|
margin: EdgeInsets.all(margin),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: child,
|
|
|
|
|
),
|
|
|
|
|
|