We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8bfae14 + ff86e39 commit bfb34c6Copy full SHA for bfb34c6
lib/pages/downloads_page.dart
@@ -22,7 +22,11 @@ class _DownloadsPageState extends State<DownloadsPage> {
22
}
23
24
_initFiles() async {
25
- _homeDirectory = (await getExternalStorageDirectory()).path + '/';
+ if (Platform.isAndroid) {
26
+ _homeDirectory = (await getExternalStorageDirectory()).path + '/';
27
+ } else {
28
+ _homeDirectory = (await getApplicationDocumentsDirectory()).path + '/';
29
+ }
30
_directory = _homeDirectory;
31
_syncFiles();
32
0 commit comments