ko2ic / image_downloader

Flutter plugin that downloads images and movies on the Internet and saves to Photo Library on iOS or specified directory on Android.
https://pub.dartlang.org/packages/image_downloader#-readme-tab-
MIT License
92 stars 113 forks source link

Already fixed errors and crashes #151

Open luongcuong244 opened 1 month ago

luongcuong244 commented 1 month ago

Fixed error: 'when' expression must be exhaustive, add necessary 'is Pending', 'is Successful' branches or 'else' branch instead Fixed crash: android.database.CursorIndexOutOfBoundsException

I was facing the errors when I downloaded multiple images in a row, but I have already fixed these errors.

Changed the way this library is imported from:

  dependencies:
    image_downloader: ^0.31.0

to:

  dependencies:
    image_downloader:
      git:
        url: https://github.com/luongcuong244/image_downloader

Hope can help someone