admin管理员组文章数量:1318573
I'm using the image_picker package in my Flutter app to take photos and pick files. However, I'm facing two issues:
Camera Issue:
When taking a photo with the camera, the photo is taken, and I confirm the selection, but nothing happens afterward (no callback, no image displayed, etc.).
File Picker Issue:
When picking a file, the file is picked correctly. However, upon returning to the app, nothing happens (no callback, no image displayed). When trying to open the file picker again, I get the following error: Unhandled Exception: PlatformException(already_active, Image picker is already active, null, null)
What I've Tried:
1 : Ensured all permissions are added in both AndroidManifest.xml and Info.plist. 2 : Used the latest version of the image_picker package (image_picker: ^1.1.2). 3 : Made sure to await the pickImage method. 4 : Handled null values from the pickImage method. 5 : Checked for activity conflicts and ensured the picker isn't triggered multiple times.
本文标签:
版权声明:本文标题:flutter - Image Picker "already_active" error and no response after selecting a photo or file - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742048742a2417948.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论