Viewing version 2.3.2. Open the latest package page.

url_launcher_platform_interface

2.3.2

A common platform interface for the url_launcher plugin.

Download archive

Readme

url_launcher_platform_interface

A common platform interface for the url_launcher plugin.

This interface allows platform-specific implementations of the url_launcher plugin, as well as the plugin itself, to ensure they are supporting the same interface.

Usage

To implement a new platform-specific implementation of url_launcher, extend UrlLauncherPlatform with an implementation that performs the platform-specific behavior, and when you register your plugin, set the default UrlLauncherPlatform by calling UrlLauncherPlatform.instance = MyPlatformUrlLauncher().

Note on breaking changes

Strongly prefer non-breaking changes (such as adding a method to the interface) over breaking changes for this package.

See https://flutter.dev/go/platform-interface-breaking-changes for a discussion on why a less-clean interface is preferable to a breaking change.

Changelog

2.3.2

  • Replaces deprecated RouteInformation API usage.

2.3.1

  • Updates minimum required plugin_platform_interface version to 2.1.7.

2.3.0

  • Adds InAppBrowserConfiguration parameter to LaunchOptions, to configure in-app browser views, such as Android Custom Tabs or SFSafariViewController.
  • Adds showTitle parameter to InAppBrowserConfiguration in order to control web-page title visibility.

2.2.1

  • Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
  • Fixes new lint warnings.

2.2.0

  • Adds a new inAppBrowserView launch mode, to distinguish in-app browser views (such as Android Custom Tabs or SFSafariViewController) from simple web views.
  • Adds supportsMode and supportsCloseForMode to query platform support for launching and closing with various modes.

2.1.5

  • Updates documentation to mention support for Android Custom Tabs.

2.1.4

  • Adds pub topics to package metadata.
  • Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.

2.1.3

  • Updates minimum Flutter version to 3.3.
  • Aligns Dart and Flutter SDK constraints.
  • Removes deprecated API calls.

2.1.2

  • Updates links for the merge of flutter/plugins into flutter/packages.
  • Updates minimum Flutter version to 3.0.

2.1.1

  • Updates imports for prefer_relative_imports.
  • Updates minimum Flutter version to 2.10.

2.1.0

  • Adds a new launchUrl method corresponding to the new app-facing interface.

2.0.5

  • Updates code for new analysis options.
  • Update to use the verify method introduced in platform_plugin_interface 2.1.0.

2.0.4

  • Silenced warnings that may occur during build when using a very recent version of Flutter relating to null safety.

2.0.3

  • Migrate pushRouteNameToFramework to use ChannelBuffers API.

2.0.2

  • Update platform_plugin_interface version requirement.

2.0.1

  • Fix SDK range.

2.0.0

  • Migrate to null safety.

1.0.10

  • Update Flutter SDK constraint.

1.0.9

  • Laid the groundwork for introducing a Link widget.

1.0.8

  • Added webOnlyWindowName parameter

1.0.7

  • Update lower bound of dart dependency to 2.1.0.

1.0.6

  • Make the pedantic dev_dependency explicit.

1.0.5

  • Make the PlatformInterface _token non const (as const Objects are not unique).

1.0.4

  • Use the common PlatformInterface code from plugin_platform_interface.
  • [TEST ONLY BREAKING CHANGE] remove UrlLauncherPlatform.isMock, we're not increasing the major version as doing so for platform interfaces has bad implications, given that this is only going to break test code, and that the plugin is young and shouldn't have third-party users we've decided to land this as a patch bump.

1.0.3

  • Minor DartDoc changes and add a lint for missing DartDocs.

1.0.2

  • Use package URI in test directory to import code from lib.

1.0.1

  • Enforce that UrlLauncherPlatform isn't implemented with implements.

1.0.0

  • Initial release.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'url_launcher_platform_interface:2.3.2'
pubspec.yaml
name: url_launcher_platform_interface
description: A common platform interface for the url_launcher plugin.
repository: https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher_platform_interface
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 2.3.2

environment:
  sdk: ^3.1.0
  flutter: ">=3.13.0"

dependencies:
  flutter:
    sdk: flutter
  plugin_platform_interface: ^2.1.7

dev_dependencies:
  flutter_test:
    sdk: flutter
  mockito: 5.4.4

topics:
  - links
  - os-integration
  - url-launcher
  - urls

Version history

VersionPublishedArchiveSHA-256
1.0.0On demandDownloaddd26672f…b5dc6f
1.0.1On demandDownload9b5396f4…93704f
1.0.4On demandDownload30f99a32…dc2a62
1.0.5On demandDownload7364d172…d9a6a8
1.0.6On demandDownload8f7f3c4f…925c10
1.0.7On demandDownloadebac9b81…d27a3b
1.0.8On demandDownload97fc9bb5…ef6370
1.0.9On demandDownloadc6bd00f4…2da157
2.0.0-nullsafetyOn demandDownloadfe1b991c…56cec2
2.0.0-nullsafety.1On demandDownload036de183…6fe338
2.0.0On demandDownload8e205a7e…46f1c6
2.0.1On demandDownloadbe46294d…d3508f
2.0.2On demandDownload9589b5fe…1d75f1
2.0.3On demandDownload062ff073…1fbb0f
2.0.4On demandDownloada4acd1ae…371aed
2.0.5On demandDownload1b9c4dab…4ef93d
2.1.0On demandDownload80b860b3…6d2120
2.1.1On demandDownload4eae9126…c759a6
2.1.2On demandDownload6c9ca697…8c4370
2.1.3On demandDownloadbfdfa402…7ee2ea
2.1.4On demandDownload4d0dae95…5f73bd
2.1.5On demandDownload95465b39…787618
2.2.0On demandDownload980e8d9a…807e50
2.2.1On demandDownloadf099b552…7501ad
2.3.0On demandDownload4aca1e06…d92198
2.3.1On demandDownloada932c3a8…35de1f
2.3.2Cached · Upstream SHA-256 matchedDownload552f8a1e…f01029

Dependencies

flutter { "sdk": "flutter" }

plugin_platform_interface "^2.1.7"