talira

url_launcher

Flutter plugin for opening URLs, phone numbers, SMS and email links

open sourceBSD-3-Clausefree

url_launcher is the Flutter team's plugin for launching URLs from an app: web links in the browser or an in-app browser view, mailto: links in the email app, tel: and sms: links in the phone and messaging apps, and file: paths with their default app on desktop. It works on Android, iOS, Linux, macOS, the web and Windows; on iOS and Android 11 and later, each scheme checked with canLaunchUrl must be declared in the app's Info.plist or manifest. It's part of the flutter/packages repository and published on pub.dev by flutter.dev.

Problems it solves

  • open a web link in the browser from my Flutter app
  • start a phone call or open the email app with a pre-filled message from Flutter
  • open a link in an in-app browser view in a Flutter app

Features

  • Opens URLs from Flutter in the browser or an in-app browser view
  • mailto, tel and sms links open the email, phone and messaging apps
  • file: paths open with their default app on desktop
  • Android, iOS, Linux, macOS, web and Windows

Limitations

  • On iOS and Android 11 and later, canLaunchUrl returns false unless each URL scheme is declared in Info.plist or AndroidManifest.xml1

Alternatives

The same job

These do what url_launcher does.

  1. flutter_inappwebview Flutter plugin for inline webviews, headless webviews and in-app browser windows
  2. webview_flutter Flutter plugin that shows web pages in a WebView widget
  3. Flutter Packages Flutter's first-party packages and plugins, maintained by the Flutter team
  4. android_intent_plus A Flutter plugin for launching Android intents
  5. open_file Flutter plugin that opens a file in the device's native app
  6. Flutter Widget from HTML Render HTML as Flutter widgets, with a focus on correctness and extensibility

Compare url_launcher with the top 3