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
|
} else
|
||||||
return false;
|
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…
Add table
Add a link
Reference in a new issue