splash_page.dart 533 B

1234567891011121314151617181920212223
  1. import 'package:flutter/material.dart';
  2. import 'package:sport/router/navigator_util.dart';
  3. class SplashPage extends StatefulWidget {
  4. @override
  5. _SplashPageState createState() => _SplashPageState();
  6. }
  7. class _SplashPageState extends State<SplashPage> {
  8. @override
  9. void initState() {
  10. // TODO: implement initState
  11. super.initState();
  12. Future.delayed(Duration(milliseconds: 500), () {
  13. NavigatorUtil.goHomePage(context);
  14. });
  15. }
  16. @override
  17. Widget build(BuildContext context) {
  18. return Container();
  19. }
  20. }