mirror of
https://github.com/zontreck/NBTEditor
synced 2024-11-21 13:48:56 -07:00
Removes unused page
This commit is contained in:
parent
72d6c2ce34
commit
c44f3a7c7f
1 changed files with 0 additions and 47 deletions
|
@ -43,50 +43,3 @@ Future<bool> needsPermissionsPage() async {
|
|||
} else
|
||||
return false;
|
||||
}
|
||||
|
||||
class StartPage extends StatefulWidget {
|
||||
const StartPage({super.key});
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
return StartPageState();
|
||||
}
|
||||
}
|
||||
|
||||
class StartPageState extends State<StartPage> {
|
||||
@override
|
||||
void didChangeDependencies() {
|
||||
if (Platform.isAndroid || Platform.isIOS || Platform.isMacOS)
|
||||
checkPermissions();
|
||||
else
|
||||
Navigator.pushReplacementNamed(context, "/edit");
|
||||
}
|
||||
|
||||
Future<void> checkPermissions() async {
|
||||
if (await Permission.manageExternalStorage.isDenied) {
|
||||
await Future.delayed(const Duration(seconds: 5), () {
|
||||
Navigator.pushReplacementNamed(context, "/perms");
|
||||
});
|
||||
} else {
|
||||
await Future.delayed(Duration(seconds: 2), () {
|
||||
Navigator.pushReplacementNamed(context, "/edit");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const Scaffold(
|
||||
body: Column(
|
||||
children: [
|
||||
SizedBox(height: 100),
|
||||
Image(
|
||||
image: AssetImage("Icons/PNG/nbteditor.png"),
|
||||
height: 500,
|
||||
width: 500,
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue