提交 d36ba6ef authored 作者: yueweilu's avatar yueweilu

闪屏

上级 79895cf6
...@@ -33,28 +33,29 @@ class _SplashPageState extends State<SplashPage> { ...@@ -33,28 +33,29 @@ class _SplashPageState extends State<SplashPage> {
return Scaffold( return Scaffold(
extendBodyBehindAppBar: true, extendBodyBehindAppBar: true,
appBar: AppBar(), appBar: AppBar(),
body: const Column( body: Image.asset('assets/images/splash.png',fit: BoxFit.cover,)
crossAxisAlignment: CrossAxisAlignment.stretch, // const Column(
mainAxisAlignment: MainAxisAlignment.center, // crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ // mainAxisAlignment: MainAxisAlignment.center,
Expanded( // children: [
flex: 5, // Expanded(
child: Center( // flex: 5,
child: CustomEmpty( // child: Center(
icon: CustomImage.asset( // child: CustomEmpty(
url: 'assets/images/logo.png', // icon: CustomImage.asset(
fit: BoxFit.contain, // url: 'assets/images/logo.png',
), // fit: BoxFit.contain,
title: Text('紫荆数智学堂'), // ),
), // title: Text('紫荆数智学堂'),
) // ),
), // )
// Expanded( // ),
// flex: 2, // // Expanded(
// child: Center(child: CupertinoActivityIndicator(),), // // flex: 2,
// ) // // child: Center(child: CupertinoActivityIndicator(),),
], // // )
), // ],
// ),
); );
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论