YSWelcome.dart 650 B

123456789101112131415161718192021222324252627
  1. import 'package:flutter/material.dart';
  2. import 'package:flutterappfuyou/code/base/YSTools.dart';
  3. class YSWelcome extends StatefulWidget {
  4. const YSWelcome({Key key}) : super(key: key);
  5. @override
  6. _YSWelcomeState createState() => _YSWelcomeState();
  7. }
  8. class _YSWelcomeState extends State<YSWelcome> {
  9. @override
  10. void initState() {
  11. Future.delayed(Duration(seconds: 0)).then((value) {
  12. });
  13. super.initState();
  14. }
  15. @override
  16. Widget build(BuildContext context) {
  17. return Container(
  18. height: ysHeight(context),
  19. width: ysWidth(context),
  20. child: Image.asset('lib/images/launch.png',fit: BoxFit.fill,),
  21. );
  22. }
  23. }