-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ♻️ add basic video player in crop_viewer * ✨ show videos fake cropped in result view * ♻️ update video widgets * ♻️ show video in crop view * 🐛 fix always hidden crop ratio button * ✨ show crop video preview * 🐛 fix `InstaAssetCropTransform` * 🐛 fix `InstaAssetCropTransform` to fit aspect ratio * 💄 fix crop loader * 💄 fix video thumbnail size * ♻️ export photo_manger * 🚨 remove import * 💄 improve placeholders and image loading/error * 💄 fix cropview loading & error widgets * ✨ add `skipCropOnComplete` options builder param * 🐛 fix camera example crop view size issue * ♻️ update CropResult page in example * ✨ add `previewThumbnailSize` config parameter * ♻️ update camera examples to supports video * 🐛 fix camera example asset from picture broken size * ➕ use git dependency * ♻️ move cropDelegate into InstaAssetPickerConfig * ✨ new `InstaAssetsExportData` class * ✨ add `ffmpegCrop` and `ffmpegScale`, add ffmpeg in example * ♻️ improve example export progress with ffmpeg statistics * 🐛 fix camera video_player exception * 🐛 fix iCloud video loading * 💄 fix iCloud loading size * 🐛 fix saving crop param on dispose * 🐛 fix camera examples * 📝 update doc * ⬆️ use latest insta_assets_crop * 📝 update changelog, readme and migration guide * 📝 update doc * 📝 update doc * 📝 update doc * 📝 update doc
- Loading branch information
1 parent
72247c0
commit 1bb91e3
Showing
28 changed files
with
1,628 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Migration Guide | ||
|
||
This document gathered all breaking changes and migrations requirement between major versions. | ||
|
||
## 3.0.0-dev.1 | ||
|
||
### InstaAssetPickerConfig | ||
|
||
The picker configuration parameters must not be provided into a `InstaAssetPickerConfig` class in `pickerConfig` | ||
|
||
```diff | ||
InstaAssetPicker.pickAssets( | ||
context, | ||
- title: 'Example title', | ||
- pickerTheme: widget.getPickerTheme(context), | ||
+ pickerConfig: InstaAssetPickerConfig( | ||
+ title: 'Example title', | ||
+ pickerTheme: widget.getPickerTheme(context), | ||
+ ), | ||
) | ||
``` | ||
|
||
The picker is now showing image and video assets by default. To show only images, you can change the `requestType` param. | ||
```diff | ||
InstaAssetPicker.pickAssets( | ||
context, | ||
+ requestType: RequestType.image | ||
) | ||
``` | ||
|
||
|
||
The `InstaAssetsExportDetails` was also updated. | ||
The cropped files are now nullable, an all the crop parameters are returned in a new class called `InstaAssetsExportData`. | ||
|
||
```diff | ||
+ class InstaAssetsExportData { | ||
+ final File? croppedFile; | ||
+ final InstaAssetsCropData selectedData; | ||
+ } | ||
|
||
InstaAssetsExportDetails { | ||
- final List<File> croppedFiles; | ||
+ final List<InstaAssetsExportData> data; | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.