Url launcher

The Aurora implementation of url_launcher.

Usage

Therefore, you have to include url_launcher as dependencies in your pubspec.yaml file.

pubspec.yaml

dependencies:
  url_launcher: ^6.3.1

main.cpp

Add aurora::EnableQtCompatibility();.

*.dart

import 'package:url_launcher/url_launcher.dart';

Future<bool> openURI(String uri) async {
  try {
    return await launchUrl(Uri.parse(uri));
  } on PlatformException {
    throw "Failed to open";
  }
}