edit card_position.dart

merge-update-with-lab-changes
Amjad amireh 5 years ago
parent c0c175651f
commit d1a01f5afa

@ -37,12 +37,7 @@ class _ErOptionsState extends State<ErOptions> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
// Text(TranslationBase.of(context).searchBy,
// style: TextStyle(
// fontSize: 24.0,
// letterSpacing: 1.0,
// fontWeight: FontWeight.bold,
// color: new Color(0xFF60686b))),
Container( Container(
margin: EdgeInsets.fromLTRB(0.0, 10.0, 0.0, 10.0), margin: EdgeInsets.fromLTRB(0.0, 10.0, 0.0, 10.0),
child: Row( child: Row(

@ -21,7 +21,7 @@ class CardCommonEr extends StatelessWidget {
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
navigateToSearch(context, this.type); navigateToSearch(context, this.type);
print("=============this.type============="+this.type);
}, },
child: Container( child: Container(
margin: EdgeInsets.fromLTRB(9.0, 9.0, 9.0, 9.0), margin: EdgeInsets.fromLTRB(9.0, 9.0, 9.0, 9.0),
@ -63,14 +63,7 @@ class CardCommonEr extends StatelessWidget {
if(type==0) if(type==0)
{print("========Ambalunce=========");} {print("========Ambalunce=========");}
else{ else{
print("=========Nearest ER===========");
// Navigator.push(
// context,
//
// FadePage(
// // page: NearestEr(isAppbar: true,)));
// page: NearestEr()));
Navigator.push( Navigator.push(
context, context,
FadePage( FadePage(
@ -79,11 +72,5 @@ class CardCommonEr extends StatelessWidget {
} }
// Navigator.push(
// context,
// MaterialPageRoute(
// builder: (context) => Search(
// type: type,
// )));
} }
} }

@ -40,7 +40,7 @@ class CardPosition extends StatelessWidget {
}, },
child: Container( child: Container(
width:170, width:165,
margin: EdgeInsets.fromLTRB(7.0, 7.0, 7.0, 7.0), margin: EdgeInsets.fromLTRB(7.0, 7.0, 7.0, 7.0),
decoration: BoxDecoration(boxShadow: [ decoration: BoxDecoration(boxShadow: [
BoxShadow(color: Colors.grey[400], blurRadius: 2.0, spreadRadius: 0.0) BoxShadow(color: Colors.grey[400], blurRadius: 2.0, spreadRadius: 0.0)
@ -79,10 +79,8 @@ class CardPosition extends StatelessWidget {
Future navigateToSearch(context, type,telephone,networkImage,latitude,longitude,projectname) async { Future navigateToSearch(context, type,telephone,networkImage,latitude,longitude,projectname) async {
//===Switch case===
print("================"+type);
print("================"+telephone);
print("================"+networkImage);
showDialog( showDialog(
context: context,builder: (_) => AssetGiffyDialog( context: context,builder: (_) => AssetGiffyDialog(
@ -98,22 +96,6 @@ class CardPosition extends StatelessWidget {
onOkButtonPressed: () { MapsLauncher.launchCoordinates(double.parse(latitude),double.parse(longitude),projectname);}, onOkButtonPressed: () { MapsLauncher.launchCoordinates(double.parse(latitude),double.parse(longitude),projectname);},
onCancelButtonPressed :() {launch("tel://" +telephone);} onCancelButtonPressed :() {launch("tel://" +telephone);}
// double.parse(
// _medicineProvider.pharmaciesList[index]["Latitude"]),
// double.parse(
// _medicineProvider.pharmaciesList[index]["Longitude"]),
// _medicineProvider.pharmaciesList[index]
// ["LocationDescription"]);
//launch("tel://" +telephone);
//================
// MapsLauncher.launchCoordinates(
// double.parse(
// _medicineProvider.pharmaciesList[index]["Latitude"]),
// double.parse(
// _medicineProvider.pharmaciesList[index]["Longitude"]),
// _medicineProvider.pharmaciesList[index]
// ["LocationDescription"]);
//=================

Loading…
Cancel
Save