camera_gallery_image_picker 0.0.4 copy "camera_gallery_image_picker: ^0.0.4" to clipboard
camera_gallery_image_picker: ^0.0.4 copied to clipboard

Flutter Package to capture image from camera and pick image from gallery. This Package supports both the feature at a same time or individually.

Camera Gallery Image Picker #

A Flutter package that provides a simple and customizable way to capture images from the camera and pick image from gallery and both from camera and gallery at the same time.

Pub Star on Github License: MIT

Platform Support #

Android iOS macOS Web Linux Windows

Installation #

Add the following dependency to your pubspec.yaml file:

dependencies:
  camera_gallery_image_picker: ^0.0.4

Then, run flutter pub get to install the package.

IOS #

Add following keys to your info.plist file:

 <key>NSCameraUsageDescription</key>
 <string>Describe why yo need camera permission</string>
 <key>NSPhotoLibraryUsageDescription</key>
 <string>Describe why you need photo library permission</string>

Android #

No any configuration is required.

Usage #

Import the package:

import 'package:camera_gallery_image_picker/camera_gallery_image_picker.dart';

Screenshots #

Example #


import 'package:camera_gallery_image_picker/camera_gallery_image_picker.dart';

/// CAPTURE AND PICK IMAGE FROM CAMERA
final File? _imageFile = await CameraGalleryImagePicker.pickImageFromCamera(
   context: context,
   source: ImagePickerSource.camera,
);

/// PICK IMAGE FROM GALLERY
final File? _imageFile = await CameraGalleryImagePicker.pickImageFromGallery(
   context: context,
   source: ImagePickerSource.gallery,
);

/// OPTIONS TO PICK IMAGE FROM BOTH CAMERA AND GALLERY
final File? _imageFile = await CameraGalleryImagePicker.pickImageFromGallery(
   context: context,
   source: ImagePickerSource.both,
);

/// PICK MULTIPLE IMAGES FROM GALLERY
final List<File> = await CameraGalleryImagePicker pickMultiImage();

5
likes
130
pub points
75%
popularity

Publisher

verified publisherhemantpaneru.com.np

Flutter Package to capture image from camera and pick image from gallery. This Package supports both the feature at a same time or individually.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, image_picker

More

Packages that depend on camera_gallery_image_picker