Commit 457699ca authored by Izol's avatar Izol

adjsut splash page

parent 7217826c
...@@ -94,32 +94,32 @@ class _SplashPageState extends State<SplashPage> with TickerProviderStateMixin{ ...@@ -94,32 +94,32 @@ class _SplashPageState extends State<SplashPage> with TickerProviderStateMixin{
}); });
}); });
Future.delayed(Duration(seconds: 10), () { // Future.delayed(Duration(seconds: 10), () {
showDialog( // showDialog(
context: context, // context: context,
builder: (BuildContext context) { // builder: (BuildContext context) {
return AlertDialog( // return AlertDialog(
title: Text("Error"), // title: Text("Error"),
content: Text("The app is taking too long to start. Please try again."), // content: Text("The app is taking too long to start. Please try again."),
actions: <Widget>[ // actions: <Widget>[
TextButton( // TextButton(
child: Text("Try Again"), // child: Text("Try Again"),
onPressed: () { // onPressed: () {
Navigator.of(context).pop(); // Navigator.of(context).pop();
permissionState(); // permissionState();
}, // },
), // ),
TextButton( // TextButton(
child: Text("Cancel"), // child: Text("Cancel"),
onPressed: () { // onPressed: () {
Navigator.of(context).pop(); // Navigator.of(context).pop();
}, // },
), // ),
], // ],
); // );
}, // },
); // );
}); // });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment