|
|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/pharmacyModule/product_detail_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:maps_launcher/maps_launcher.dart';
|
|
|
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
|
|
|
|
|
|
|
|
class AvailabilityInfo extends StatelessWidget {
|
|
|
|
|
final ProductDetailViewModel previousModel;
|
|
|
|
|
@ -49,7 +51,9 @@ class AvailabilityInfo extends StatelessWidget {
|
|
|
|
|
child: IconButton(
|
|
|
|
|
icon: Icon(Icons.location_on),
|
|
|
|
|
color: Colors.red,
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
onPressed: () {
|
|
|
|
|
MapsLauncher.launchCoordinates(double.parse(previousModel.productLocationService[index].latitude), double.parse(previousModel.productLocationService[index].latitude), previousModel.productLocationService[index].locationDescription);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
@ -57,7 +61,9 @@ class AvailabilityInfo extends StatelessWidget {
|
|
|
|
|
child: IconButton(
|
|
|
|
|
icon: Icon(Icons.phone),
|
|
|
|
|
color: Colors.red,
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
onPressed: () {
|
|
|
|
|
launch("tel://" + previousModel.productLocationService[index].phoneNumber);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
|