画像が読み込めない!
Flutterで写真にアクセスしようとしてimage_pickerプラグインを使用している
Android10の端末でファイルにアクセスしようとするとpermission denied
targetSdkVersionを29にしていると発生
TL;DR
対処方法のみ記載
以下リンクにあるようにAndroidManifestにおまじないを書く
<manifest ... >
<!-- This attribute is "false" by default on apps targeting
Android 10 or higher. -->
<application android:requestLegacyExternalStorage="true" ... >
...
</application>
</manifest>
参考リンク:
https://developer.android.com/training/data-storage/compatibility
https://developer.android.com/training/data-storage/shared/media?hl=ja#storage-permission
issue
https://github.com/flutter/flutter/issues/41459
実装などはあとで記載します。