SHARE
TWEET

Untitled

a guest Jun 24th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. title: new Text("WhatsApp"),
  2.             trailing: new Icon(Icons.message),
  3.              onTap: () async {
  4.               int phone = 962770593839;
  5.               var whatsappUrl = "whatsapp://send?phone=$phone";
  6.               await UrlLauncher.canLaunch(whatsappUrl) != null
  7.                   ? UrlLauncher.launch(whatsappUrl)
  8.                   : print(
  9.                       "open whatsapp app link or do a snackbar with
  10. notification that there is no whatsapp installed");
  11.             },
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top