Apply dart fixes
This commit is contained in:
parent
7a5502fbf9
commit
7accdcf246
5 changed files with 10 additions and 8 deletions
|
@ -8,11 +8,11 @@ import 'package:nbteditor/pages/permsrequired.dart';
|
|||
import 'package:permission_handler/permission_handler.dart';
|
||||
|
||||
void main() async {
|
||||
runApp(MainApp());
|
||||
runApp(const MainApp());
|
||||
}
|
||||
|
||||
class MainApp extends StatelessWidget {
|
||||
MainApp({
|
||||
const MainApp({
|
||||
super.key,
|
||||
});
|
||||
|
||||
|
@ -38,8 +38,10 @@ Future<bool> needsPermissionsPage() async {
|
|||
if (needsPermissions()) {
|
||||
if (await Permission.manageExternalStorage.isDenied) {
|
||||
return true;
|
||||
} else
|
||||
} else {
|
||||
return false;
|
||||
} else
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue