This commit is contained in:
Felipe
2023-11-17 11:58:11 -05:00
parent a0193bb43f
commit 6fe88bf31c
10 changed files with 266 additions and 781 deletions
@@ -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);
}
},
),
],