From 8754142694e81e958b25c8e010cfb36661db434b Mon Sep 17 00:00:00 2001 From: ryleedavis Date: Wed, 26 Jul 2023 16:21:20 -0600 Subject: [PATCH] android file path --- lib/pages/monkey/monkey_view.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pages/monkey/monkey_view.dart b/lib/pages/monkey/monkey_view.dart index 1dff1fd4d..554d6d9e0 100644 --- a/lib/pages/monkey/monkey_view.dart +++ b/lib/pages/monkey/monkey_view.dart @@ -113,6 +113,10 @@ class _MonkeyViewState extends ConsumerState { Future getDocsDir() async { try { + if (Platform.isAndroid) { + return Directory("/storage/emulated/0/"); + } + return await getApplicationDocumentsDirectory(); } catch (_) { return null;