mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-08 19:59:29 +00:00
android file path
This commit is contained in:
parent
d8e6f3cac6
commit
8754142694
1 changed files with 4 additions and 0 deletions
|
@ -113,6 +113,10 @@ class _MonkeyViewState extends ConsumerState<MonkeyView> {
|
|||
|
||||
Future<Directory?> getDocsDir() async {
|
||||
try {
|
||||
if (Platform.isAndroid) {
|
||||
return Directory("/storage/emulated/0/");
|
||||
}
|
||||
|
||||
return await getApplicationDocumentsDirectory();
|
||||
} catch (_) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue