| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import 'package:flutter/cupertino.dart';
- import 'package:flutter/src/widgets/framework.dart';
- import 'package:flutter_screenutil/flutter_screenutil.dart';
- import 'package:location/base/base_page.dart';
- import 'package:location/module/splash/splash_controller.dart';
- import 'package:location/resource/assets.gen.dart';
- import '../main/main_page.dart';
- class SplashPage extends BasePage<SplashController> {
- const SplashPage({super.key});
- @override
- bool immersive() {
- return true;
- }
- @override
- Widget buildBody(BuildContext context) {
- Future.delayed(Duration(seconds: 1), () {
- MainPage.start();
- });
- //测试代码
- return Stack(
- children: [
- Assets.images.bgPageBackground.image(width: double.infinity),
- Column(
- children: [
- SizedBox(height: 170.h),
- Center(
- child: Assets.images.iconLogo.image(width: 76.w, height: 76.w)),
- ],
- ),
- Padding(
- padding: EdgeInsets.only(bottom: 40.h),
- child: Align(
- alignment: Alignment.bottomCenter,
- child: Assets.images.iconSplashTitle.image(width: 167.w)),
- )
- ],
- );
- }
- }
|