mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-09 20:29:57 +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 {
|
Future<Directory?> getDocsDir() async {
|
||||||
try {
|
try {
|
||||||
|
if (Platform.isAndroid) {
|
||||||
|
return Directory("/storage/emulated/0/");
|
||||||
|
}
|
||||||
|
|
||||||
return await getApplicationDocumentsDirectory();
|
return await getApplicationDocumentsDirectory();
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue