splash_page.dart 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import 'package:flutter/material.dart';
  2. import 'package:app/modules/splash/splash_controller.dart';
  3. import 'package:plugin_basic/base/base_stateless_page.dart';
  4. import 'package:cs_resources/constants/color_constants.dart';
  5. import 'package:cs_resources/generated/assets.dart';
  6. import 'package:shared/utils/size_config.dart';
  7. import 'package:widgets/my_load_image.dart';
  8. import 'package:widgets/utils/dark_theme_util.dart';
  9. class SplashPage extends BaseStatelessPage<SplashController> {
  10. SplashPage({super.key});
  11. @override
  12. SplashController createRawController() {
  13. return SplashController();
  14. }
  15. @override
  16. void initState() {}
  17. @override
  18. Widget buildWidget(BuildContext context) {
  19. SizeConfig().init(context);
  20. return Scaffold(
  21. body: Container(
  22. decoration: const BoxDecoration(
  23. gradient: LinearGradient(
  24. colors: [
  25. Color(0xFF091D44),
  26. Color(0xFF245A8A),
  27. Color(0xFF7F7CEC),
  28. ],
  29. begin: Alignment.topCenter,
  30. end: Alignment.bottomCenter,
  31. ),
  32. ),
  33. child: const Center(
  34. child: MyAssetImage(
  35. Assets.assetsYyBusinessTopLogo,
  36. width: 166,
  37. height: 67.5,
  38. fit: BoxFit.contain,
  39. ),
  40. ),
  41. ),
  42. );
  43. }
  44. }