splash_page.dart 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import 'package:flutter/cupertino.dart';
  2. import 'package:flutter/src/widgets/framework.dart';
  3. import 'package:flutter_screenutil/flutter_screenutil.dart';
  4. import 'package:get/get.dart';
  5. import 'package:get/get_core/src/get_main.dart';
  6. import 'package:location/base/base_page.dart';
  7. import 'package:location/module/splash/splash_controller.dart';
  8. import 'package:location/resource/assets.gen.dart';
  9. class SplashPage extends BasePage<SplashController> {
  10. SplashPage({super.key});
  11. @override
  12. final SplashController controller = Get.put(SplashController());
  13. @override
  14. bool immersive() {
  15. return true;
  16. }
  17. @override
  18. Widget buildBody(BuildContext context) {
  19. return Stack(
  20. children: [
  21. Assets.images.bgPageBackground.image(width: double.infinity),
  22. Column(
  23. children: [
  24. SizedBox(height: 170.h),
  25. Center(
  26. child: Assets.images.iconLogo.image(width: 76.w, height: 76.w)),
  27. ],
  28. ),
  29. Padding(
  30. padding: EdgeInsets.only(bottom: 40.h),
  31. child: Align(
  32. alignment: Alignment.bottomCenter,
  33. child: Assets.images.iconSplashTitle.image(width: 167.w)),
  34. )
  35. ],
  36. );
  37. }
  38. }