-
Notifications
You must be signed in to change notification settings - Fork 30.3k
Rework url_launcher API #79043
Copy link
Copy link
Closed
flutter/plugins
#5310Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
The url_launcher API has been added to piecemeal over time, and at this point is kind of a mess. Major issues:
Stringrather than aUri; what happens to them is highly platform-specific.I think it's time to do a breaking change to the plugin that completely overhauls the API. My current proposal is https://github.com/stuartmorgan/plugins/blob/url-launcher-uri/packages/url_launcher/url_launcher/lib/url_launcher.dart, but I'll gather feedback and potentially iterated before moving forward. (Once I've settled on an API I'll do a change to the platform interface and the implementations first, so it's not shoehorning the new API into the old platform interface API.)