device_media

Creator: coderz1093

Last updated:

0 purchases

device_media Image
device_media Images

Languages

Categories

Add to Cart

Description:

device media

Features #

✅ Pick image from gallery, camera.
✅ Support compress image.
✅ Support crop image circle, rectangle.

Example #
DeviceMediaServiceImpl()
.openPickImage(DeviceMediaSource.gallery,
needCompress: true, needCrop: _useCrop)
.then((value) {
setState(() {
image = value;
});
});
copied to clipboard
Native setup #
Android #
android:requestLegacyExternalStorage="true"
<activity
android:name="com.yalantis.ucrop.UCropActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
copied to clipboard
iOS #
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Allow $(APP_NAME) access to your photo library to upload your profile picture?</string>
<key>NSCameraUsageDescription</key>
<string>Allow $(APP_NAME) to take photo for sharing</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Allow $(APP_NAME) access to your photo library to upload your profile picture?</string>
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.