From c44f3a7c7fc0f4defe30e63af1599eca99d8abe0 Mon Sep 17 00:00:00 2001 From: zontreck Date: Wed, 24 Jul 2024 17:34:17 -0700 Subject: [PATCH] Removes unused page --- lib/main.dart | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) 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, - ) - ], - ), - ); - } -}