Been trying all day for the best way to create an app specific folder on anroid 11 devices.
I tried /storage/0/emulated/Android/data/com.talkmia.app/files from path_provider plugin as well as /storage/0/emulated/Android/data/com.talkmia.app/ but app data gets cleared after uninstall and i think android:hasFragileData is useless because it'd only prompt if the app was uinstalled the normal way and it also keeps flutter's own extra data.
I did try SAF too with the saf packages but turns out you can't request access to root-storage and it doesn't make sense to ask users to create the folder then grant permission for that folder.
My only option now is to do it just like WhatsApp does it own. Create it in the Android/Media which i'm finding it hard to do. I've read a number of SO posts as well as Github Issues some suggesting MediaStore API while another suggested using the Context::getExternalMediaDirs which would create the app directory in the Android/Media.
Sighs! My Question now is how can get this Context::getExternalMediaDirs done in dart/flutter. I'd really like not to write platform code .