open_url 1.0.1 open_url: ^1.0.1 copied to clipboard
Open a URL on the user's default application. Helpful on DartVM, on Flutter use url_launcher instead.
import 'package:open_url/open_url.dart';
main() async {
final result = await openUrl('https://github.com/renatoathaydes/open_url');
if (result.exitCode == 0) {
print("URL should be open in your browser");
} else {
print("Something went wrong (exit code = ${result.exitCode}): "
"${result.stderr}");
}
}