splash_page.dart 856 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import 'package:flutter/material.dart';
  2. import 'package:gobang/pages/splash/countdown.dart';
  3. /// Description: splash page
  4. /// Time : 02/20/2024 Tuesday
  5. /// Author : liuyuqi.gov@msn.cn
  6. class SpalshPage extends StatefulWidget {
  7. const SpalshPage({Key? key}) : super(key: key);
  8. @override
  9. State<SpalshPage> createState() => _SpalshPageState();
  10. }
  11. class _SpalshPageState extends State<SpalshPage> {
  12. @override
  13. Widget build(BuildContext context) {
  14. return Scaffold(
  15. body: Stack(children: [
  16. Positioned.fill(
  17. child: Image.asset(
  18. "assets/images/splash.jpg",
  19. cacheWidth: 750,
  20. fit: BoxFit.cover,
  21. )),
  22. Positioned(
  23. right: 30,
  24. top: 30,
  25. child: Countdown(),
  26. )
  27. ]),
  28. );
  29. }
  30. @override
  31. void dispose() {
  32. super.dispose();
  33. }
  34. }