update
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'package:cloud_firestore/cloud_firestore.dart';
|
||||
import 'package:firebase_messaging/firebase_messaging.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
@@ -40,6 +41,8 @@ class _ServiceScreenState extends State<ServiceScreen> {
|
||||
late String appVersion;
|
||||
final Uri _url = Uri.parse(
|
||||
'https://play.google.com/store/apps/details?id=com.prosapp.prosapp');
|
||||
final Uri _urlIos =
|
||||
Uri.parse('https://apps.apple.com/co/app/prosapp/id6469028900');
|
||||
|
||||
final Location _locationController = Location();
|
||||
|
||||
@@ -958,7 +961,11 @@ class _ServiceScreenState extends State<ServiceScreen> {
|
||||
TextStyle(fontWeight: FontWeight.w600, fontSize: 20),
|
||||
),
|
||||
onPressed: () {
|
||||
launchUrl(_url);
|
||||
if (Platform.isAndroid) {
|
||||
launchUrl(_url);
|
||||
} else {
|
||||
launchUrl(_urlIos);
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user