diff --git a/lib/main.dart b/lib/main.dart index 2dc29c6..02026f1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -43,50 +43,3 @@ Future needsPermissionsPage() async { } else return false; } - -class StartPage extends StatefulWidget { - const StartPage({super.key}); - - @override - State createState() { - return StartPageState(); - } -} - -class StartPageState extends State { - @override - void didChangeDependencies() { - if (Platform.isAndroid || Platform.isIOS || Platform.isMacOS) - checkPermissions(); - else - Navigator.pushReplacementNamed(context, "/edit"); - } - - Future 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, - ) - ], - ), - ); - } -}