4.4
Serik.Uvaissov 2020-07-04 22:06:39 +06:00
parent 226fd7e413
commit a80eb5874f
1 changed files with 6 additions and 5 deletions

View File

@ -152,11 +152,12 @@ class _MyFloatingActionButtonState extends State<MyFloatingActionButton> {
@required String message,
}) async {
String url() {
if (Platform.isIOS) {
return "whatsapp://wa.me/$phone/?text=$message";
} else {
return "whatsapp://send?phone=$phone&text=$message";
}
return "whatsapp://send?phone=$phone&text=$message";
// if (Platform.isIOS) {
// return "whatsapp://wa.me/$phone/?text=$message";
// } else {
// return "whatsapp://send?phone=$phone&text=$message";
// }
}
if (await canLaunch(url())) {