android file path

This commit is contained in:
ryleedavis 2023-07-26 16:21:20 -06:00
parent d8e6f3cac6
commit 8754142694

View file

@ -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;