-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoadingpage.dart
39 lines (36 loc) · 1.01 KB
/
Loadingpage.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';
import 'package:quizzapp/SelectionPage.dart';
import 'dart:async';
class Loadingpage extends StatefulWidget {
@override
State<Loadingpage > createState() => _State();
}
class _State extends State<Loadingpage > {
@override
void initState() {
super.initState();
// Start a timer to navigate to the next screen after 5 seconds
Timer(Duration(seconds: 1), () {
Navigator.pushReplacement(
context,
MaterialPageRoute(builder: (context) => SelectionPage()),
);
});
}
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
appBar:AppBar(
backgroundColor: Colors.white ,
iconTheme: IconThemeData(
color: Color(0xFFED2350) //Other properties of the AppBar
),
),
body: SpinKitDoubleBounce(
color: Color(0xFFED2350),
size: 80.0,
),
);
}
}