|
|
|
|
@ -40,7 +40,7 @@ class CardPosition extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
width:170,
|
|
|
|
|
width:165,
|
|
|
|
|
margin: EdgeInsets.fromLTRB(7.0, 7.0, 7.0, 7.0),
|
|
|
|
|
decoration: BoxDecoration(boxShadow: [
|
|
|
|
|
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 {
|
|
|
|
|
|
|
|
|
|
//===Switch case===
|
|
|
|
|
print("================"+type);
|
|
|
|
|
print("================"+telephone);
|
|
|
|
|
print("================"+networkImage);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showDialog(
|
|
|
|
|
context: context,builder: (_) => AssetGiffyDialog(
|
|
|
|
|
@ -98,22 +96,6 @@ class CardPosition extends StatelessWidget {
|
|
|
|
|
onOkButtonPressed: () { MapsLauncher.launchCoordinates(double.parse(latitude),double.parse(longitude),projectname);},
|
|
|
|
|
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"]);
|
|
|
|
|
//=================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|