wa.me
parent
226fd7e413
commit
a80eb5874f
|
|
@ -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";
|
||||
}
|
||||
// if (Platform.isIOS) {
|
||||
// return "whatsapp://wa.me/$phone/?text=$message";
|
||||
// } else {
|
||||
// return "whatsapp://send?phone=$phone&text=$message";
|
||||
// }
|
||||
}
|
||||
|
||||
if (await canLaunch(url())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue