0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Dart ImageSource.galleryが使えない時

Last updated at Posted at 2021-12-13

以下のwidgetを使った際に、カメラは使えるが写真一覧を開けかなった時の理由を書きます。
https://pub.dev/packages/image_picker

原因

iOS simulator内のsettingで、カメラへのアクセスを許可していないことが原因でした。

結論

XcodeやAndroid simulatorのdebugにはiOSの設定までは教えてくれないので、 コードでエラーがない時には、設定ミスを確認するといいのかもしれないですね。
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?