Skip to content

Instantly share code, notes, and snippets.

@nkmrh
Created September 10, 2018 01:16
Show Gist options
  • Save nkmrh/da6bff3b9352b93c2d3885f1cf8222fe to your computer and use it in GitHub Desktop.
Save nkmrh/da6bff3b9352b93c2d3885f1cf8222fe to your computer and use it in GitHub Desktop.
launch_url
import 'package:url_launcher/url_launcher.dart';
InkWell(
child: Text("This is a link text"),
onTap: () async {
if (await canLaunch("url")) {
await launch("url");
}
},
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment