Giter VIP home page Giter VIP logo

multiple-image-camera's Introduction

A Flutter package for both android and iOS which provides Take Multiple Images from Camera.

Features

  • Display live camera preview in a widget.
  • You can Switch Camera if you want to take photo from front Camera.
  • Take Multiple Photos at once and them in the list.
  • This package contains pre-canned animations for commonly-desired effects.
  • This package also have Camera shutter vibration.
  • Ability for Show images that are clicked and added to the list.
  • You can zoom in or zoom out with pinch to zoom.

Screenshots

Alt text Alt text Alt text

Installation

First, add multiple_image_camera as a dependency in your pubspec.yaml file.

iOS

  • The multiple_image_camera plugin compiles for any version of iOS, but its functionality requires iOS 10 or higher. If compiling for iOS 9, make sure to programmatically check the version of iOS running on the device before using any multiple_image_camera plugin features. The device_info_plus plugin, for example, can be used to check the iOS version. Add two rows to the ios/Runner/Info.plist:

  • one with the key Privacy - Camera Usage Description and a usage description. and one with the key Privacy - Microphone Usage Description and a usage description. If editing Info.plist as text, add:

  • NSCameraUsageDescription your usage description here NSMicrophoneUsageDescription your usage description here

Android

Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.

minSdkVersion 21

Usage

TODO: Here is a small example flutter app displaying a full screen camera preview with taking multiple images.

List<MediaModel> images = [] ;
 ElevatedButton(
            child: const Text("Capture"),
            onPressed: () async {
            MultipleImageCamera.capture(context: context).then((value) {
              setState(() {
                images = value ;
              });
            });
          
            },
          ),
          
          Expanded(
            child: ListView.builder(
                shrinkWrap: true,
                itemCount: images.length,
                itemBuilder: (context, index) {
                  return Image.file(File(images[index].file.path));
                }),
          )

multiple-image-camera's People

Contributors

adbhutashra26 avatar hopekgh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.