image_pick 0.0.3+1 copy "image_pick: ^0.0.3+1" to clipboard
image_pick: ^0.0.3+1 copied to clipboard

outdated

Image picker using image_picker and custom camera

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);
}

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;
        });
    },
)

Happy fluttering, @Cybernetics Core

2
likes
0
pub points
24%
popularity

Publisher

unverified uploader

Image picker using image_picker and custom camera

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

camera, cyblock, flutter, image, image_picker, path_provider, shared_preferences, system_info

More

Packages that depend on image_pick