image_picker_android
0.8.13+25, released 7 weeks ago by flutter.dev
Android implementation of the image_picker plugin for selecting photos and videos.
What it does
Provides the Android side of the image_picker federated plugin. It uses the Android Photo Picker when possible and can resize images during decoding. It exposes APIs to enable the new photo‑picker features on older Android versions.
AI-written summary of version 0.8.13+25, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to pick images or videos on Android devices
- You want native resizing to avoid large memory usage
- You rely on the Android Photo Picker for a consistent UI
Skip it when
- Your app runs only on iOS or web
- You prefer a single cross‑platform package without platform‑specific code
- You need advanced editing or cropping features
Strengths
- Uses the system Photo Picker for a native experience
- Efficient subsampling of large images
- Endorsed federated plugin, auto‑included with image_picker
Weaknesses
- Android‑only, no iOS/web implementation
- Advanced features require manual import and setup
- Limited to the capabilities of the Android Photo Picker
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add image_picker to pubspec (this plugin is auto‑included). Ensure Android manifest has CAMERA and READ/WRITE_EXTERNAL_STORAGE permissions if needed. To enable the optional Photo Picker on API <=15, import the package and set ImagePickerAndroid.useAndroidPhotoPicker = true before calling image_picker APIs.
import 'package:image_picker_android/image_picker_android.dart';
import 'package:image_picker_platform_interface/image_picker_platform_interface.dart';
final impl = ImagePickerPlatform.instance;
if (impl is ImagePickerAndroid) {
impl.useAndroidPhotoPicker = true;
}
// then use image_picker as usualAlternatives
Packages that do the same job and could replace image_picker_android.
- image
Pure Dart library to load, manipulate, encode, and decode various image formats.
96Compare - image_cropper
A Flutter plugin for Android, iOS and Web supports cropping images
84Compare - image_picker_plus
In-app image and video picker with built-in cropping, filters, camera, and editing tools.
70Compare - fc_native_image_resize
A Flutter plugin to resize images via native APIs.
69Compare
Works with
Packages commonly used together with image_picker_android: ones it builds on, ones built on it, and its own family.
- flutter_plugin_android_lifecycleimage_picker_android depends on itFlutter plugin for accessing Android Lifecycle within other plugins.
- image_picker_for_webSame familyWeb implementation of image_picker that lets users select images or videos via the browser file picker.
- image_picker_windowsSame familyWindows implementation of image_picker for selecting images and videos
- local_auth_androidSame familyAndroid implementation of the local_auth plugin for biometric authentication.
- google_maps_flutter_androidSame familyAndroid implementation of the google_maps_flutter plugin.
- cameraSame familyFlutter plugin to preview, capture photos/video and stream camera images.
- image_picker_iosSame familyiOS implementation of the image_picker plugin.
- image_picker_macosSame familymacOS platform implementation of the image_picker plugin