splash_page.dart 1.2 KB

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