Removes unused page

This commit is contained in:
zontreck 2024-07-24 17:34:17 -07:00
parent 72d6c2ce34
commit c44f3a7c7f

View file

@ -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,
)
],
),
);
}
}