Skip to content
pubscout

url_launcher_windows

3.1.6, released 3 months ago by flutter.dev

Launch URLs, files and app schemes on Windows from Flutter apps.

WASM-ready
$ flutter pub add url_launcher_windows
Source repository

What it does

Provides the Windows implementation of the url_launcher plugin. It opens web links, mailto links, and file URLs using the default system handlers. It integrates with the federated url_launcher API so you can call launchUrl without platform checks.

AI-written summary of version 3.1.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to open external links or files on Windows desktops
  • You are building a Flutter app that runs on multiple platforms and want Windows support for url_launcher

Skip it when

  • You only target non‑Windows platforms
  • You need advanced browser control beyond just launching a URL

Strengths

  • Seamless integration with the federated url_launcher API
  • Automatically included when using url_launcher on Windows
  • Handles file URLs with UTF‑8 paths and provides proper error logging

Weaknesses

  • Only works on Windows; other platforms need their own implementations
  • Relies on system default handlers, so behavior can vary across Windows versions

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
2
import 'package:url_launcher/url_launcher.dart';

Future<void> open() async {
  final Uri url = Uri.parse('https://flutter.dev');
  if (!await launchUrl(url)) {
    throw 'Could not launch $url';
  }
}

Alternatives

Packages that do the same job and could replace url_launcher_windows.

  • mailto

    Create mailto URIs with support for multiple to, cc, bcc, subject, and body fields with encoding.

Works with

Packages commonly used together with url_launcher_windows: ones it builds on, ones built on it, and its own family.