gallery_camera_image 0.0.9 copy "gallery_camera_image: ^0.0.9" to clipboard
gallery_camera_image: ^0.0.9 copied to clipboard

Flutter plugin for Android and iOS supports cropping & picking images from the image library, and taking new pictures with the camera.

How to install #

Android

  1. Add UCropActivity into your AndroidManifest.xml
        android:requestLegacyExternalStorage="true"
        cleartextTrafficPermitted="true"
<activity
    android:name="com.yalantis.ucrop.UCropActivity"
    android:screenOrientation="portrait"
    android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
  1. AndroidManifest.xml permission
  <uses-permission android:name="android.permission.CAMERA" />
  <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
	<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
	<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
  1. Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.
minSdkVersion 21
  1. Change kotlin version :- android/build.gradle
     ext.kotlin_version = '1.6.10' 

How use GalleryCamerImage Widget

 await Get.to(() => GalleryCamareImage(
                              fromEditProfile: true,
      ))!
      .then((value) {
    if (value != null) selectedCropImage = value;
   });
      OR
imagePickEdit(context)
4
likes
100
pub points
0%
popularity

Publisher

unverified uploader

Flutter plugin for Android and iOS supports cropping & picking images from the image library, and taking new pictures with the camera.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

camera, flutter, image_cropper, image_picker, permission_handler

More

Packages that depend on gallery_camera_image