0 purchases
easy 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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.