image_select 0.0.3 image_select: ^0.0.3 copied to clipboard
Pick images from device gallery and camera. Alternate of image_picker
The Image Select Maestro 🌈✨ #
Welcome to the enchanting realm of the Image Picker Maestro! 🎩✨ This Flutter wizardry has been meticulously crafted by weaving together the enchantments of three magical plugins: image_picker
, camera
, and flutter_native_image
.
Bid farewell to mundane and crash-prone experiences, as our Image Selector plugin ensures a seamless journey across all devices, leaving you spellbound with its flawless performance!
Installation Magic 🪄 #
Sprinkle the magic potion into your pubspec.yaml
file, and witness the wonders of image_select
. Tap here to cast the spell!
Compress Images 🌄 #
Behold the power of image compression! Now, you can select and compress images effortlessly using this single magical package. How enchanting!
Android Incantation 🤖 #
No need for extra runes or secret scrolls. Android bows before the might of this enchantment with no additional configurations needed.
Example Spellcasting 🪄 #
import 'package:flutter/material.dart';
import 'package:image_select/image_select.dart';
File? file;
CameraUiSettings cameraUiSettings = CameraUiSettings(
appbarColor: Colors.teal,
iconTheme: const IconThemeData(color: Colors.white),
title: 'Shoot the Image',
textStyle: const TextStyle(
color: Colors.white,
),
initialCameraSide: CameraSide.back,
);
pickImage(ImageFrom source) async {
debugPrint(cameraUiSettings.toJson().toString());
ImageSelect imageSelector = ImageSelect(cameraUiSettings: cameraUiSettings, compressImage: true);
await imageSelector.pickImage(context: context, source: source).then((pickedFile) {
if (pickedFile != null) {
setState(() {
file = pickedFile;
});
Navigator.pop(context);
}
});
}