image_pick

Last updated:

0 purchases

image_pick Image
image_pick Images
Add to Cart

Description:

image pick

image_pick #
An Image picker for Flutter with Memory Decision
Purpose #
I made this package because image picker from flutter sometimes crash and destroy MainActivity when system needs more RAM, so we need to alternative image picker when the condition fullfils
Usage #
First of all, just initialize it in main
void main() {
runApp(MyApp());
ImagePick.instance.initializeAvailableCamera(0.4);
}
copied to clipboard
and then you can use it
FloatingActionButton(
child: Icon(Icons.camera_alt),
onPressed: () async {
PickedFile _image = await ImagePick.instance.getImageWithMemoryDecision(ImagePickWithMemoryConfiguration(
camera: ImagePickSourceCamera(context: context),
picker: ImagePickSourcePicker(pickerSource: PickerSource.camera),
));

setState(() {
_file = _image;
});
},
)
copied to clipboard
Happy fluttering, @Cybernetics Core

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.