问题标签 [changenotifier]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
134 浏览

flutter - imagePicker 中的 PlatformException(multiple_request, 被第二个请求取消, null, null)

我正在使用 Riverpod 提供程序类来处理从图库中挑选图像。但是,一旦选择了图像,我就会收到错误:PlatformException(multiple_request, Canceled by a second request null, null)。不确定第二个请求来自哪里。更重要的是,由于这种未知的取消,没有图像应用于我的占位符 (CircleAvartar)。这是有问题的两个飞镖文件,感谢您的帮助。

图像提供者文件:

AuthScreen 飞镖文件:

从画廊或相机中挑选图像的模拟器屏幕截图