summaryrefslogtreecommitdiff
path: root/lib/level_selection.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/level_selection.dart')
-rw-r--r--lib/level_selection.dart2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/level_selection.dart b/lib/level_selection.dart
index 08c0f12..33d8c8b 100644
--- a/lib/level_selection.dart
+++ b/lib/level_selection.dart
@@ -2,6 +2,7 @@ import 'dart:io';
import 'package:file_picker/file_picker.dart';
import 'package:flutter/material.dart';
+import 'package:permission_handler/permission_handler.dart';
import 'package:sense_the_rhythm/esense_connect_dialog.dart';
import 'package:sense_the_rhythm/esense_input.dart';
import 'package:sense_the_rhythm/simfile.dart';
@@ -43,6 +44,7 @@ class _LevelSelectionState extends State<LevelSelection> {
}
Future<void> selectFolder() async {
+ await Permission.manageExternalStorage.request();
String? selectedFolder = await FilePicker.platform.getDirectoryPath();
if (selectedFolder != null) {