An example showcasing picking image from your gallery and croppinng it. The core of the example is from image_cropper library.
Download the image_cropper
& image_picker
dependency.
Add below code at you AndroidManifest.xml
<activity
android:name="com.yalantis.ucrop.UCropActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
Add below lines at your info.plist
file.
<key>NSMicrophoneUsageDescription</key>
<string>Used from image picker</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Used from image picker</string>
<key>NSCameraUsageDescription</key>
<string>Used from image picker</string>
You can now use the code.