Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter how to open a url

import 'package:url_launcher/url_launcher.dart';

const url = "https://flutter.io";
if (await canLaunchUrl(url))
  await launchUrl(url);
else 
  // can't launch url, there is some error
  throw "Could not launch $url";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #open #url
ADD COMMENT
Topic
Name
8+3 =