FlutterWay / gallery_picker

MIT License
8 stars 6 forks source link

Bad state: Too many elements #1

Open jj-gh opened 1 year ago

jj-gh commented 1 year ago

If you have the same video file (tested with mp4) on the same directory name on different storage drives, GalleryPicker.collectGallery throws "Bad state: Too many elements"

For example, if both:

/sub_dir/vid_parent_dir/video.mp4 /vid_parent_dir/video.mp4 exist, the error gets triggered. The difference in sub directories doesn't matter, only the name of the video files' parent directory. Even if you make the file names different like "video1.mp4" and "video2.mp4", the error gets triggered. e.g. /sub_dir/vid_parent_dir/video1.mp4 /vid_parent_dir/video2.mp4
worldwidee commented 1 year ago

Hello, sorry for the late reply. I'll look into it when I find some free time. You can also join our discord channel to find faster solutions https://discord.gg/yeRYrs5G

worldwidee commented 1 year ago

@jj-gh the problem should be fixed. Feel free to try new version