multi_image_capture 1.0.1 copy "multi_image_capture: ^1.0.1" to clipboard
multi_image_capture: ^1.0.1 copied to clipboard

A easy way to capture mutiple image from camera at custom resolution. Super easy to integrate and customizable to proudct theme.

Flutter Multi Image Capture #

Multi Image Capture is a Flutter package which can be used to capture multiple images from camera and get the list of images in return.

Add Flutter Dependency #

Add the following packages under dependencies section

  multi_image_capture: {latest version number : ex 1.0.1}

Run Flutter Pub Get

Basic Implementation #

Use the below code to initialie the Multi Image Capture camera screen

    MultiImageCapture(
        title: "Camera Capture",
        onRemoveImage: (File image) async {
            /*
                * Can Show confirmation dialog here before returning to remove image
                * Return true; will remove image from list
                * Return false; will keep the image unchanged
            */

            return true;
        },
        onAddImage: (image) async {
            //perform any action after capturing each image
        },

        onComplete: (List<File> finalImages) {
            
        },
    )

Note: onRemoveImage(), onAddImage() and onComplete() are the Mandatory Parameters

Additional Attributes (Optional Parameters) #

    // Toolbar title for the camera screen
    title: "Camera Capture",
    
    // Maximum number of images that can be captured at once
    maxImages: 5,
    
    // Previously captured images can be passed to resume from that point
    preCapturedImages: [],

    // Custom Theme Colors (By Default app theme colors will be taken)
    themePrimaryColor: Colors.deepPurpleAccent,
    themeSecondaryColor: Colors.white,

    // Icons for the buttons on the camera screen
    switchCameraButtonIcon: Icons.flip_camera_android,
    captureButtonIcon: Icons.camera,
    doneButtonIcon: Icons.done,

    // Design elements for the image delete button
    removeImageButtonIcon: Icons.remove,
    removeImageButtonSize: 21,
    removeImageButtonColor: Colors.amber,

    // Error message when maximum number of image capture is reached
    imageLimitErrorMessage: "You cannot capture more than 5 images at a time",

Screenshot 1 and Screenshot 2 implemented without any optional parameters. Screenshot 3 and Screenshot 4 implemented with all optional parameters

10
likes
140
pub points
51%
popularity

Publisher

verified publisherdreamorbit.com

A easy way to capture mutiple image from camera at custom resolution. Super easy to integrate and customizable to proudct theme.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

camera, flutter

More

Packages that depend on multi_image_capture