Commit 457699ca authored by Izol's avatar Izol

adjsut splash page

parent 7217826c
......@@ -94,32 +94,32 @@ class _SplashPageState extends State<SplashPage> with TickerProviderStateMixin{
});
});
Future.delayed(Duration(seconds: 10), () {
showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: Text("Error"),
content: Text("The app is taking too long to start. Please try again."),
actions: <Widget>[
TextButton(
child: Text("Try Again"),
onPressed: () {
Navigator.of(context).pop();
permissionState();
},
),
TextButton(
child: Text("Cancel"),
onPressed: () {
Navigator.of(context).pop();
},
),
],
);
},
);
});
// Future.delayed(Duration(seconds: 10), () {
// showDialog(
// context: context,
// builder: (BuildContext context) {
// return AlertDialog(
// title: Text("Error"),
// content: Text("The app is taking too long to start. Please try again."),
// actions: <Widget>[
// TextButton(
// child: Text("Try Again"),
// onPressed: () {
// Navigator.of(context).pop();
// permissionState();
// },
// ),
// TextButton(
// child: Text("Cancel"),
// onPressed: () {
// 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