Contact us

merge-update-with-lab-changes
Amjad amireh 5 years ago
parent 5ce252d296
commit 7c48a6f16a

@ -1,4 +1,3 @@
import 'package:diplomaticquarterapp/core/viewModels/contactus/findus_view_model.dart';
import 'package:diplomaticquarterapp/core/enum/viewstate.dart'; import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
import 'package:diplomaticquarterapp/core/viewModels/contactus/livechat_view_model.dart'; import 'package:diplomaticquarterapp/core/viewModels/contactus/livechat_view_model.dart';
import 'package:diplomaticquarterapp/pages/base/base_view.dart'; import 'package:diplomaticquarterapp/pages/base/base_view.dart';
@ -42,7 +41,6 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
children: [ children: [
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
SizedBox( SizedBox(
height: 20, height: 20,
@ -65,8 +63,9 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
), ),
), ),
), ),
SizedBox(height: MediaQuery.of(context).size.height*0.85,), SizedBox(
height: MediaQuery.of(context).size.height * 0.85,
),
SizedBox( SizedBox(
height: 100, height: 100,
), ),
@ -75,19 +74,22 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
Positioned( Positioned(
left: 13, left: 13,
right: 13, right: 13,
top:200, top: 200,
child: Container(width: double.maxFinite, child: Container(
width: double.maxFinite,
child: Column( child: Column(
children: [ children: [
...List.generate( ...List.generate(
model.LiveChatModelList.length, model.LiveChatModelList.length,
(index) => Container( (index) => Container(
margin: margin: EdgeInsets.only(
EdgeInsets.only(left: 0, right: 0, bottom: 20), left: 0, right: 0, bottom: 20),
decoration: BoxDecoration( decoration: BoxDecoration(
shape: BoxShape.rectangle, shape: BoxShape.rectangle,
border: Border.all(color: Colors.white, width: 0.5), border: Border.all(
borderRadius: BorderRadius.all(Radius.circular(5)), color: Colors.white, width: 0.5),
borderRadius: BorderRadius.all(
Radius.circular(5)),
color: tappedIndex == index color: tappedIndex == index
? Colors.red ? Colors.red
: Colors.white, : Colors.white,
@ -95,7 +97,8 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
child: Padding( child: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment:
CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
InkWell( InkWell(
onTap: () { onTap: () {
@ -105,24 +108,33 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
"http://chat.dshmg.com:7788/hmgchatapp/hmgchattest/Index.aspx?Name=${model.user.firstName}&PatientID=${model.user.patientID}&MobileNo=${model.user.mobileNumber}&Language=en&WorkGroup=${model.LiveChatModelList[index].value}"; "http://chat.dshmg.com:7788/hmgchatapp/hmgchattest/Index.aspx?Name=${model.user.firstName}&PatientID=${model.user.patientID}&MobileNo=${model.user.mobileNumber}&Language=en&WorkGroup=${model.LiveChatModelList[index].value}";
}); });
}, },
child:Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment:
crossAxisAlignment: CrossAxisAlignment.center, MainAxisAlignment
.spaceAround,
crossAxisAlignment:
CrossAxisAlignment.center,
children: <Widget>[ children: <Widget>[
SizedBox(width: 20,), SizedBox(
width: 20,
),
Expanded( Expanded(
child: Container( child: Container(
margin: EdgeInsets.only( margin:
left: 5, right: 5), EdgeInsets.only(
left: 5,
right: 5),
child: Texts( child: Texts(
'${model.LiveChatModelList[index].projectName}', '${model.LiveChatModelList[index].projectName}',
color: color:
tappedIndex == index tappedIndex ==
? Colors.white index
: Colors.black, ? Colors
textAlign: .white
TextAlign.center, : Colors
.black,
textAlign: TextAlign
.center,
))), //model.cOCItemList[index].cOCTitl ))), //model.cOCItemList[index].cOCTitl
IconButton( IconButton(
icon: Icon( icon: Icon(
@ -146,7 +158,8 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
), ),
)), )),
], ],
),), ),
),
), ),
], ],
), ),
@ -181,7 +194,3 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
); );
} }
} }

@ -13,7 +13,8 @@ class LiveChatPage extends StatefulWidget {
_LiveChatPageState createState() => _LiveChatPageState(); _LiveChatPageState createState() => _LiveChatPageState();
} }
class _LiveChatPageState extends State<LiveChatPage> with SingleTickerProviderStateMixin{ class _LiveChatPageState extends State<LiveChatPage>
with SingleTickerProviderStateMixin {
TabController _tabController; TabController _tabController;
@override @override
void initState() { void initState() {
@ -26,6 +27,7 @@ class _LiveChatPageState extends State<LiveChatPage> with SingleTickerProviderSt
super.dispose(); super.dispose();
_tabController.dispose(); _tabController.dispose();
} }
@override @override
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -56,12 +58,12 @@ class _LiveChatPageState extends State<LiveChatPage> with SingleTickerProviderSt
child: Container( child: Container(
height: 60.0, height: 60.0,
margin: EdgeInsets.only(top: 10.0), margin: EdgeInsets.only(top: 10.0),
width: MediaQuery.of(context).size.width *0.92,// 0.9, width: MediaQuery.of(context).size.width * 0.92, // 0.9,
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: BorderSide( bottom: BorderSide(
color: Theme.of(context).dividerColor, color: Theme.of(context).dividerColor,
width: 0.9),//width: 0.7 width: 0.9), //width: 0.7
), ),
color: Colors.white), color: Colors.white),
child: Center( child: Center(
@ -105,7 +107,7 @@ class _LiveChatPageState extends State<LiveChatPage> with SingleTickerProviderSt
physics: BouncingScrollPhysics(), physics: BouncingScrollPhysics(),
controller: _tabController, controller: _tabController,
children: <Widget>[ children: <Widget>[
HospitalsLiveChatPage(),//SendFeedbackPage(), HospitalsLiveChatPage(), //SendFeedbackPage(),
PhamaciesLiveChatPage() PhamaciesLiveChatPage()
//StatusFeedbackPage() //StatusFeedbackPage()
], ],

@ -20,15 +20,13 @@ class _PhamaciesLiveChatPageState extends State<PhamaciesLiveChatPage> {
String chat; String chat;
@override @override
void initState() void initState() {
{
super.initState(); super.initState();
tappedIndex=-1; tappedIndex = -1;
chat=""; chat = "";
} }
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BaseView<LiveChatViewModel>( return BaseView<LiveChatViewModel>(
onModelReady: (model) => model.getLiveChatRequestOrders(), onModelReady: (model) => model.getLiveChatRequestOrders(),
@ -36,29 +34,31 @@ class _PhamaciesLiveChatPageState extends State<PhamaciesLiveChatPage> {
baseViewModel: model, baseViewModel: model,
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
margin: EdgeInsets.only(left: 15,right: 15), margin: EdgeInsets.only(left: 15, right: 15),
child: Column( child: Column(
children: [ children: [
SizedBox(height: 20,), SizedBox(
height: 20,
),
Container( Container(
width: double.infinity, width: double.infinity,
height: 200, height: 200,
decoration: BoxDecoration( decoration: BoxDecoration(
image: DecorationImage( image: DecorationImage(
image: ExactAssetImage( image: ExactAssetImage(''), fit: BoxFit.cover),
''), ),
fit: BoxFit.cover), child: Texts(
'You can now talk directly to the pharmacist by chat or request a call back',
color: Colors.black,
textAlign: TextAlign.center,
), ),
child: Texts('You can now talk directly to the pharmacist by chat or request a call back',color: Colors.black,textAlign: TextAlign.center,),
), ),
/////////// ///////////
SizedBox(height: 100,), SizedBox(
height: 100,
),
], ],
), ),
), ),
), ),
@ -74,17 +74,16 @@ class _PhamaciesLiveChatPageState extends State<PhamaciesLiveChatPage> {
label: 'ٍStart', label: 'ٍStart',
loading: model.state == ViewState.BusyLocal, loading: model.state == ViewState.BusyLocal,
onTap: () { onTap: () {
print("chat="+chat); print("chat=" + chat);
chat="http://chat.dshmg.com:7788/EPharmacyChat/EIndex.aspx?CustomerID=undefined&Name=${model.user.firstName}&MobileNo=${model.user.mobileNumber}&Language=1"; chat =
"http://chat.dshmg.com:7788/EPharmacyChat/EIndex.aspx?CustomerID=undefined&Name=${model.user.firstName}&MobileNo=${model.user.mobileNumber}&Language=1";
launch(chat); launch(chat);
}, },
), ),
), ),
), ),
), ),
), ),
); );
} }
} }

@ -4,22 +4,19 @@ import 'package:diplomaticquarterapp/core/viewModels/contactus/findus_view_model
import 'package:diplomaticquarterapp/pages/ContactUs/findus/hospitrals_page.dart'; import 'package:diplomaticquarterapp/pages/ContactUs/findus/hospitrals_page.dart';
import 'package:diplomaticquarterapp/pages/ContactUs/findus/pharmacies_page.dart'; import 'package:diplomaticquarterapp/pages/ContactUs/findus/pharmacies_page.dart';
import 'package:diplomaticquarterapp/pages/base/base_view.dart'; import 'package:diplomaticquarterapp/pages/base/base_view.dart';
import 'package:diplomaticquarterapp/pages/feedback/send_feedback_page.dart';
import 'package:diplomaticquarterapp/pages/feedback/status_feedback_page.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:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class FindUsPage extends StatefulWidget { class FindUsPage extends StatefulWidget {
@override @override
_FindUsPageState createState() => _FindUsPageState(); _FindUsPageState createState() => _FindUsPageState();
} }
class _FindUsPageState extends State<FindUsPage> with SingleTickerProviderStateMixin{ class _FindUsPageState extends State<FindUsPage>
with SingleTickerProviderStateMixin {
TabController _tabController; TabController _tabController;
@override @override
void initState() { void initState() {
@ -32,12 +29,13 @@ class _FindUsPageState extends State<FindUsPage> with SingleTickerProviderStateM
super.dispose(); super.dispose();
_tabController.dispose(); _tabController.dispose();
} }
@override @override
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BaseView<FindusViewModel>( return BaseView<FindusViewModel>(
onModelReady: (model) => model.getFindUsRequestOrders(), //model.getCOC(), onModelReady: (model) => model.getFindUsRequestOrders(), //model.getCOC(),
builder: (_,model,w)=> AppScaffold( builder: (_, model, w) => AppScaffold(
isShowAppBar: true, isShowAppBar: true,
appBarTitle: 'Locations', appBarTitle: 'Locations',
baseViewModel: model, baseViewModel: model,
@ -65,12 +63,12 @@ class _FindUsPageState extends State<FindUsPage> with SingleTickerProviderStateM
child: Container( child: Container(
height: 60.0, height: 60.0,
margin: EdgeInsets.only(top: 10.0), margin: EdgeInsets.only(top: 10.0),
width: MediaQuery.of(context).size.width *0.92,// 0.9, width: MediaQuery.of(context).size.width * 0.92, // 0.9,
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: BorderSide( bottom: BorderSide(
color: Theme.of(context).dividerColor, color: Theme.of(context).dividerColor,
width: 0.9),//width: 0.7 width: 0.9), //width: 0.7
), ),
color: Colors.white), color: Colors.white),
child: Center( child: Center(
@ -114,8 +112,13 @@ class _FindUsPageState extends State<FindUsPage> with SingleTickerProviderStateM
physics: BouncingScrollPhysics(), physics: BouncingScrollPhysics(),
controller: _tabController, controller: _tabController,
children: <Widget>[ children: <Widget>[
HospitalsPage(findusHospitalModelList: model.FindusHospitalModelList,),//SendFeedbackPage(), HospitalsPage(
PharmaciesPage(findusPharmaciesModelList: model.FindusPharmaciesModelList,)//StatusFeedbackPage() findusHospitalModelList: model.FindusHospitalModelList,
), //SendFeedbackPage(),
PharmaciesPage(
findusPharmaciesModelList:
model.FindusPharmaciesModelList,
) //StatusFeedbackPage()
], ],
), ),
) )

@ -1,4 +1,3 @@
import 'package:diplomaticquarterapp/core/model/contactus/get_hmg_locations.dart'; import 'package:diplomaticquarterapp/core/model/contactus/get_hmg_locations.dart';
import 'package:diplomaticquarterapp/core/viewModels/contactus/findus_view_model.dart'; import 'package:diplomaticquarterapp/core/viewModels/contactus/findus_view_model.dart';
import 'package:diplomaticquarterapp/pages/base/base_view.dart'; import 'package:diplomaticquarterapp/pages/base/base_view.dart';
@ -10,8 +9,8 @@ import 'package:flutter/material.dart';
import 'package:giffy_dialog/giffy_dialog.dart'; import 'package:giffy_dialog/giffy_dialog.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
import 'package:maps_launcher/maps_launcher.dart'; import 'package:maps_launcher/maps_launcher.dart';
class HospitalsPage extends StatefulWidget {
class HospitalsPage extends StatefulWidget {
final List<GetHMGLocationsModel> findusHospitalModelList; final List<GetHMGLocationsModel> findusHospitalModelList;
HospitalsPage({Key key, this.findusHospitalModelList}); HospitalsPage({Key key, this.findusHospitalModelList});
@ -23,22 +22,22 @@ class HospitalsPage extends StatefulWidget {
class _HospitalsPageState extends State<HospitalsPage> { class _HospitalsPageState extends State<HospitalsPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return AppScaffold( return AppScaffold(
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
// margin: EdgeInsets.only(left: 15,right: 15,top: 70), // margin: EdgeInsets.only(left: 15,right: 15,top: 70),
margin: EdgeInsets.only(left: 15,right: 15,top: 70), margin: EdgeInsets.only(left: 15, right: 15, top: 70),
child: Column( child: Column(
children: [ children: [
...List.generate(widget.findusHospitalModelList.length, (index) => Container( ...List.generate(
widget.findusHospitalModelList.length,
(index) => Container(
decoration: BoxDecoration( decoration: BoxDecoration(
shape: BoxShape.rectangle, shape: BoxShape.rectangle,
border: Border.all(color: Colors.white, width: 0.5), border: Border.all(color: Colors.white, width: 0.5),
borderRadius: BorderRadius.all(Radius.circular(5)), borderRadius: BorderRadius.all(Radius.circular(5)),
color: Colors.white, color: Colors.white,
), ),
child: Padding( child: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: Column( child: Column(
@ -46,138 +45,186 @@ class _HospitalsPageState extends State<HospitalsPage> {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
Row( Row(
mainAxisAlignment: mainAxisAlignment:
MainAxisAlignment.spaceBetween, MainAxisAlignment.spaceBetween,
children: <Widget>[ children: <Widget>[
Expanded( Expanded(
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment:
MainAxisAlignment.spaceBetween,
crossAxisAlignment: crossAxisAlignment:
CrossAxisAlignment.center, CrossAxisAlignment.center,
children: <Widget>[ children: <Widget>[
InkWell( InkWell(
onTap:(){ onTap: () {
showDialog( showDialog(
context: context,builder: (_) => AssetGiffyDialog( context: context,
title: Text(widget.findusHospitalModelList[index].locationName, builder: (_) =>
AssetGiffyDialog(
title: Text(
widget
.findusHospitalModelList[
index]
.locationName,
style: TextStyle( style: TextStyle(
fontSize: 22.0, fontWeight: FontWeight.w600), fontSize: 22.0,
),image:Image.network(widget.findusHospitalModelList[index].projectImageURL.toString(), fit: BoxFit.cover,), fontWeight:
buttonCancelText:Text('cancel') , FontWeight
buttonCancelColor: Colors.grey, .w600),
),
image: Image.network(
widget
.findusHospitalModelList[
index]
.projectImageURL
.toString(),
fit: BoxFit.cover,
),
buttonCancelText:
Text('cancel'),
buttonCancelColor:
Colors.grey,
onlyCancelButton: true, onlyCancelButton: true,
));
) );
}, },
child: Container( child: Container(
width: 70, width: 70,
height: 70, height: 70,
child: Image.network(widget.findusHospitalModelList[index].projectImageURL.toString())), child: Image.network(widget
.findusHospitalModelList[
index]
.projectImageURL
.toString())),
), ),
Expanded( Expanded(
flex: 4, flex: 4,
child: Container( child: Container(
margin: EdgeInsets.only(left: 5,right: 5,top: 10,bottom: 1), margin: EdgeInsets.only(
child: Texts('${widget.findusHospitalModelList[index].locationName}',textAlign: TextAlign.center,))),//model.cOCItemList[index].cOCTitl left: 5,
right: 5,
top: 10,
bottom: 1),
child: Texts(
'${widget.findusHospitalModelList[index].locationName}',
textAlign: TextAlign.center,
))), //model.cOCItemList[index].cOCTitl
Expanded( Expanded(
flex: 2, flex: 2,
child: Row( child: Row(
crossAxisAlignment: crossAxisAlignment:
CrossAxisAlignment.center, CrossAxisAlignment.center,
children: [ children: [
IconButton( IconButton(
// icon: Icon(Icons.person_pin_circle_outlined,color: Colors.red,), // icon: Icon(Icons.person_pin_circle_outlined,color: Colors.red,),
icon:new Image.asset('assets/images/new-design/navigate.png'), icon: new Image.asset(
'assets/images/new-design/navigate.png'),
tooltip: '', tooltip: '',
onPressed: () { onPressed: () {
setState(() { setState(() {
MapsLauncher.launchCoordinates(double.parse(widget.findusHospitalModelList[index].latitude),double.parse(widget.findusHospitalModelList[index].longitude),widget.findusHospitalModelList[index].locationName); MapsLauncher.launchCoordinates(
double.parse(widget
.findusHospitalModelList[
index]
.latitude),
double.parse(widget
.findusHospitalModelList[
index]
.longitude),
widget
.findusHospitalModelList[
index]
.locationName);
}); });
}, },
), ),
IconButton( IconButton(
// icon: Icon(Icons.phone,color: Colors.red,), // icon: Icon(Icons.phone,color: Colors.red,),
icon:new Image.asset('assets/images/new-design/call.png'), icon: new Image.asset(
'assets/images/new-design/call.png'),
tooltip: '', tooltip: '',
onPressed: () { onPressed: () {
setState(() { setState(() {
// _volume += 10; // _volume += 10;
launch("tel://" +widget.findusHospitalModelList[index].phoneNumber); launch("tel://" +
widget
.findusHospitalModelList[
index]
.phoneNumber);
}); });
}, },
), ),
], ],
), ),
), ),
], ],
), ),
), ),
], ],
), ),
// Texts('${model.FindusHospitalModelList[index].locationName}'), // Texts('${model.FindusHospitalModelList[index].locationName}'),
Divider(height: 4.5,color: Colors.grey[500],) Divider(
height: 4.5,
color: Colors.grey[500],
)
], ],
), ),
), ),
)), )),
SizedBox(height: 8,), SizedBox(
Container(width: double.infinity, height: 8,
height: 100,color: Colors.white, ),
Container(
width: double.infinity,
height: 100,
color: Colors.white,
child: Row( child: Row(
mainAxisSize:MainAxisSize.max, mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [ children: [
IconButton( IconButton(
icon: new Image.asset('assets/images/new-design/youtube.png'), icon: new Image.asset(
'assets/images/new-design/youtube.png'),
iconSize: 70, iconSize: 70,
tooltip: 'Youtube', tooltip: 'Youtube',
onPressed: () { onPressed: () {
setState(() { setState(() {
launch(
launch("https://www.youtube.com/c/DrsulaimanAlhabibHospitals"); "https://www.youtube.com/c/DrsulaimanAlhabibHospitals");
}); });
}, },
), ),
IconButton( IconButton(
icon: new Image.asset('assets/images/new-design/linkedin.png'), icon: new Image.asset(
'assets/images/new-design/linkedin.png'),
tooltip: 'LinkedIn', tooltip: 'LinkedIn',
iconSize: 70, iconSize: 70,
onPressed: () { onPressed: () {
setState(() { setState(() {
launch(
launch("https://www.linkedin.com/company/drsulaiman-alhabib-medical-group"); "https://www.linkedin.com/company/drsulaiman-alhabib-medical-group");
}); });
}, },
), ),
IconButton( IconButton(
icon: new Image.asset('assets/images/new-design/twitter.png'), icon: new Image.asset(
'assets/images/new-design/twitter.png'),
tooltip: 'Twitter', tooltip: 'Twitter',
iconSize: 70, iconSize: 70,
onPressed: () { onPressed: () {
setState(() { setState(() {
launch("https://twitter.com/HMG"); launch("https://twitter.com/HMG");
}); });
}, },
), ),
IconButton( IconButton(
icon: new Image.asset('assets/images/new-design/facebook.png'), icon: new Image.asset(
'assets/images/new-design/facebook.png'),
tooltip: 'facebook', tooltip: 'facebook',
iconSize: 70, iconSize: 70,
onPressed: () { onPressed: () {
setState(() { setState(() {
launch(
launch("https://www.facebook.com/DrSulaimanAlHabib?ref=tn_tnmn"); "https://www.facebook.com/DrSulaimanAlHabib?ref=tn_tnmn");
}); });
}, },
), ),
@ -188,8 +235,6 @@ class _HospitalsPageState extends State<HospitalsPage> {
), ),
), ),
), ),
); );
} }
} }

@ -54,26 +54,60 @@ class _PharmaciesPageState extends State<PharmaciesPage> {
CrossAxisAlignment.center, CrossAxisAlignment.center,
children: <Widget>[ children: <Widget>[
InkWell( InkWell(
onTap:(){ onTap: () {
showDialog( showDialog(
context: context,builder: (_) => AssetGiffyDialog( context: context,
title: Text(widget.findusPharmaciesModelList[index].locationName, builder: (_) =>
AssetGiffyDialog(
title: Text(
widget
.findusPharmaciesModelList[
index]
.locationName,
style: TextStyle( style: TextStyle(
fontSize: 22.0, fontWeight: FontWeight.w600), fontSize: 22.0,
fontWeight:
FontWeight
.w600),
),
image: widget
.findusPharmaciesModelList[
index]
.projectImageURL !=
null
? Image.network(
widget
.findusPharmaciesModelList[
index]
.projectImageURL,
fit: BoxFit.cover,
)
: Image.network(
'https://hmgwebservices.com/Images/Hospitals/15.jpg',
fit: BoxFit.cover,
), ),
image:widget.findusPharmaciesModelList[index].projectImageURL!= null? Image.network(widget.findusPharmaciesModelList[index].projectImageURL, fit: BoxFit.cover,): Image.network('https://hmgwebservices.com/Images/Hospitals/15.jpg', fit: BoxFit.cover,) , buttonCancelText:
buttonCancelText:Text('cancel') , Text('cancel'),
// buttonCancelText:Text(model.user.projectID) , // buttonCancelText:Text(model.user.projectID) ,
buttonCancelColor: Colors.grey, buttonCancelColor:
Colors.grey,
onlyCancelButton: true, onlyCancelButton: true,
));
) );
}, },
child: Container( child: Container(
width: 70, width: 70,
height: 70, height: 70,
child: child: Image.network(widget
Image.network(widget.findusPharmaciesModelList[index].projectImageURL!= null? widget.findusPharmaciesModelList[index].projectImageURL.toString(): 'https://hmgwebservices.com/Images/Hospitals/15.jpg') ), .findusPharmaciesModelList[
index]
.projectImageURL !=
null
? widget
.findusPharmaciesModelList[
index]
.projectImageURL
.toString()
: 'https://hmgwebservices.com/Images/Hospitals/15.jpg')),
), ),
Expanded( Expanded(
flex: 4, flex: 4,
@ -81,13 +115,16 @@ class _PharmaciesPageState extends State<PharmaciesPage> {
margin: EdgeInsets.only( margin: EdgeInsets.only(
left: 5, right: 5), left: 5, right: 5),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment:
CrossAxisAlignment.start,
children: [ children: [
Texts( Texts(
'${widget.findusPharmaciesModelList[index].locationName}', '${widget.findusPharmaciesModelList[index].locationName}',
textAlign: TextAlign.start, textAlign: TextAlign.start,
), ),
SizedBox(height: 4,), SizedBox(
height: 4,
),
Texts( Texts(
'${widget.findusPharmaciesModelList[index].cityName}', '${widget.findusPharmaciesModelList[index].cityName}',
textAlign: TextAlign.center, textAlign: TextAlign.center,
@ -107,19 +144,22 @@ class _PharmaciesPageState extends State<PharmaciesPage> {
// .person_pin_circle_outlined, // .person_pin_circle_outlined,
// color: Colors.red, // color: Colors.red,
// ), // ),
icon:new Image.asset('assets/images/new-design/navigate.png'), icon: new Image.asset(
tooltip: 'assets/images/new-design/navigate.png'),
'', tooltip: '',
onPressed: () { onPressed: () {
setState(() { setState(() {
MapsLauncher.launchCoordinates( MapsLauncher.launchCoordinates(
double.parse(widget.findusPharmaciesModelList[ double.parse(widget
.findusPharmaciesModelList[
index] index]
.latitude), .latitude),
double.parse(widget.findusPharmaciesModelList[ double.parse(widget
.findusPharmaciesModelList[
index] index]
.longitude), .longitude),
widget.findusPharmaciesModelList[ widget
.findusPharmaciesModelList[
index] index]
.locationName); .locationName);
// _volume += 10; // _volume += 10;
@ -131,14 +171,15 @@ class _PharmaciesPageState extends State<PharmaciesPage> {
// Icons.phone, // Icons.phone,
// color: Colors.red, // color: Colors.red,
// ), // ),
icon:new Image.asset('assets/images/new-design/call.png'), icon: new Image.asset(
tooltip: 'assets/images/new-design/call.png'),
'I', tooltip: 'I',
onPressed: () { onPressed: () {
setState(() { setState(() {
// _volume += 10; // _volume += 10;
launch("tel://" + launch("tel://" +
widget.findusPharmaciesModelList[ widget
.findusPharmaciesModelList[
index] index]
.phoneNumber); .phoneNumber);
}); });
@ -152,7 +193,6 @@ class _PharmaciesPageState extends State<PharmaciesPage> {
), ),
], ],
), ),
Divider( Divider(
height: 4.5, height: 4.5,
color: Colors.grey[500], color: Colors.grey[500],

Loading…
Cancel
Save