stuartmorgan c9fec61b6c [image_picker] Prevent multiple active calls on iOS (#5272)
The image picker plugin's implementation doesn't currently handle multiple calls correctly due to the use of an ivar to track the response object; the original entry point handles that by cancelling earlier requests when new ones come in, but as we added more entry points we didn't replicate that logic. This adds it to all picker entry points. (Longer term, we should instead handle multiple concurrent calls, but this is consistent with historical behavior, and is better than having some `await`s on the Dart side never return as can happen now.)

The newer PHPicker code path not only didn't cancel, but used an ivar for the picker view controller, which in some cases could result in the same controller being presented multiple times, crashing the app (see referenced issue). While the new cancel calls will prevent that case from happening, to prevent anything similar from happening in the future this removes the ivar entirely, since we can just pass the controller to the necessary methods (as is already being done with the `UIImagePickerController` paths).

Fixes https://github.com/flutter/flutter/issues/108900
2023-10-31 14:52:04 +00:00
2017-08-01 14:58:30 -07:00

Flutter Packages

Release Status Build Dashboard OpenSSF Scorecard

This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.

These packages are also available on pub.

Issues

Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled "package".

Contributing

If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.

If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.

Packages

These are the packages hosted in this repository:

Package Pub Points Popularity Issues Pull requests
animations pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
camera pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
cross_file pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
css_colors pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
cupertino_icons pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
espresso pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
extension_google_sign_in_as_googleapis_auth pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
file_selector pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
flutter_adaptive_scaffold pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
flutter_image pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
flutter_lints pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
flutter_markdown pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
flutter_plugin_android_lifecycle pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
flutter_template_images pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
go_router pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
go_router_builder pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
google_maps_flutter pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
google_sign_in pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
image_picker pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
in_app_purchase pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
ios_platform_images pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
local_auth pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
metrics_center pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
multicast_dns pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
palette_generator pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
path_provider pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
pigeon pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
platform pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
pointer_interceptor pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
plugin_platform_interface pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
process pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
quick_actions pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
rfw pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
shared_preferences pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
standard_message_codec pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
url_launcher pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
video_player pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
web_benchmarks pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
webview_flutter pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
xdg_directories pub package pub points popularity GitHub issues by-label GitHub pull requests by-label
Description
A collection of useful packages maintained by the Flutter team
Readme BSD-3-Clause 438 MiB
Languages
Dart 61.3%
Java 10.1%
C++ 9.8%
Swift 6%
Objective-C 5.1%
Other 7.5%