LeGoffMael / insta_assets_picker

An image (and videos) picker similar with Instagram, supports multi picking, crop and aspect ratio.
https://pub.dev/packages/insta_assets_picker
MIT License
79 stars 34 forks source link

[Features] restorableAssetsPicker in version [2.0.0, 1.5.2] #25

Closed sheyguys closed 10 months ago

sheyguys commented 10 months ago

Hi @LeGoffMael, First thanks for your great package, I have found problem about function restorableAssetsPicker.

For your better understanding, here is my code:

InstaAssetPicker.restorableAssetsPicker(
      context,
      title: 'Select Images',
      closeOnComplete: true,
      provider: _provider!,
      cropDelegate: const InstaAssetCropDelegate(cropRatios: [4 / 5, 1 / 1]),
      onCompleted: (events) { }
);
**Flutter doctor**
[!] Flutter (Channel stable, 3.13.4, on macOS 13.5.2 22G91 darwin-arm64, locale en-TH)
    ! Warning: `flutter` on your path resolves to /fvm/versions/3.10.6/bin/flutter, which is not inside your current Flutter SDK checkout at /fvm/versions/3.13.4. Consider adding /fvm/versions/3.13.4/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/2.18.5/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /fvm/versions/3.13.4. Consider adding /fvm/versions/3.13.4/bin to the front of your path.
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.82.1)
[✓] Connected device (4 available)
[✓] Network resources

! Doctor found issues in 2 categories.

Please advise.

LeGoffMael commented 10 months ago

Hi, I was able to reproduce the error, i pushed a fix on fix/patch-25 branch, but i will need some time to test that it is the correct patch

sheyguys commented 10 months ago

Thank you for your prompt response. I'm look forward to new patch 🎉.

LeGoffMael commented 10 months ago

Please check out the new 2.1.0 version which i believe fix this issue