flutter_image_picker_pro 1.1.0 copy "flutter_image_picker_pro: ^1.1.0" to clipboard
flutter_image_picker_pro: ^1.1.0 copied to clipboard

A versatile Flutter package for picking and handling images with compression, and adding timestamps

Introduction #

FlutterImagePickerPro is a powerful, feature-rich Flutter package designed to streamline media handling within your Flutter applications. It offers a unified interface for picking images from both the camera and gallery, compressing media files, and optionally embedding timestamps on images.

Features #

Image Picking: Easily select images from the device's gallery or capture them directly from the camera. Media Compression: Efficiently compress images to reduce file size without significant quality loss. Timestamp Embedding: Optionally add timestamps to images, enhancing media with contextual time information. Cross-Platform Support: Designed to work seamlessly on iOS and Android platforms, ensuring a consistent user experience across devices.

Why FlutterImagePickerPro ? #

FlutterImagePickerPro stands out by offering a comprehensive suite of media handling functionalities under one roof. Whether you're building a social media app, a content creation tool, or any application that requires robust media management capabilities, FlutterImagePickerPro simplifies the development process. Its intuitive API and extensive documentation make integrating advanced media features straightforward, enabling developers to focus on crafting exceptional user experiences.

Example Usage #

Here's a quick glimpse at how easy it is to pick an image from the gallery and compress it using FlutterImagePickerPro:

import 'package:flutter_image_picker_pro/flutter_image_picker_pro.dart';

final FlutterImagePickerPro mediaPicker = FlutterImagePickerPro();

final XFile? pickedFile = await FlutterImagePickerPro.getMedia(isRecording: isRecording,isAudio: isAudio,
isSourceCamera: false,context: context, isVideo: isVideo, ref: ref, isCompressionRequired: true,
isNeedTimeStamp: true,onProcessing: (bool isProcessing) {
setState(() {
_isProcessing = isProcessing;
});
},);

Setup, permissions and others #

Android #

<uses-permission android:name="android.permission.RECORD_AUDIO" />
<!-- Optional: Add this permission if you want to use bluetooth telephony device like headset/earbuds -->
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<!-- Optional: Add this permission if you want to save your recordings in public folders -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

min SDK: 23 (amrNb/amrWb: 26, Opus: 29) Audio formats sample rate hints

iOS #

<key>NSAppTransportSecurity</key>
    <key>UIMainStoryboardFile</key>
    <string>Main</string>
    <key>NSPhotoLibraryUsageDescription</key>
    <string>Your message explaining why the app needs access to the photo library</string>
    <key>UISupportsDocumentBrowser</key>
    <true/>
    <key>NSAppleMusicUsageDescription</key>
    <string>Explain why your app uses music</string>
    <key>NSCameraUsageDescription</key>
    <string>Your message explaining why the app needs to use the camera</string>
    <key>UISupportedInterfaceOrientations</key>
    <key>NSMicrophoneUsageDescription</key>
    <string>Your message explaining why the app needs to use the microphone</string>
0
likes
150
points
53
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A versatile Flutter package for picking and handling images with compression, and adding timestamps

Repository

License

MIT (license)

Dependencies

file_picker, flutter, flutter_image_compress, flutter_riverpod, image, image_picker, intl, path, path_provider, permission_handler

More

Packages that depend on flutter_image_picker_pro