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.
1 parent aabce99 commit ff86e39Copy full SHA for ff86e39
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