You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
917 B
40 lines
917 B
import 'package:akuCommunity/pages/tab_navigator.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:velocity_x/velocity_x.dart';
|
|
|
|
//TODO splashPage
|
|
class SplashPage extends StatefulWidget {
|
|
SplashPage({Key key}) : super(key: key);
|
|
|
|
@override
|
|
_SplashPageState createState() => _SplashPageState();
|
|
}
|
|
|
|
class _SplashPageState extends State<SplashPage> {
|
|
Future _initOp() async {
|
|
await Future.delayed(Duration(seconds: 2));
|
|
}
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
_initOp().then((value) => Get.offAll(TabNavigator()));
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: SizedBox(
|
|
height: 80,
|
|
width: 80,
|
|
child: Placeholder(),
|
|
).centered(),
|
|
bottomNavigationBar: SizedBox(
|
|
child: CircularProgressIndicator().centered(),
|
|
height: 100,
|
|
),
|
|
);
|
|
}
|
|
}
|