From b1c5e773657f2b8cf96287194e7818da6d58d6ad Mon Sep 17 00:00:00 2001 From: WinUser01 Date: Mon, 13 Dec 2021 23:35:51 +0800 Subject: [PATCH] =?UTF-8?q?hyzp=5Fybqx-Commit012=EF=BC=9A=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E8=BE=83=E5=A5=BD=E5=9C=B0=E5=AE=9E=E7=8E=B0=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E7=94=BB=E9=9D=A2=E7=9A=84=E4=B8=80=E8=87=B4=E6=80=A7?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E8=A6=86=E7=9B=96=E9=A1=B6=E9=83=A8=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index ad64c06..d3d6bd1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -220,10 +220,29 @@ class _SplashScreenState extends State { @override Widget build(BuildContext context) { - return new Scaffold( - body: new Center( - child: new Image.asset('assets/images/hyzp_yibin_launche.png'), - // child: new Image.asset('assets/images/hyzp_ybqx_cuipingqu_launche.png'), + // return new Scaffold( + // body: new Center( + // child: new Image.asset('assets/images/hyzp_yibin_launche.png', fit: BoxFit.fill), + // // child: new Image.asset('assets/images/hyzp_ybqx_cuipingqu_launche.png'), + // ), + // ); + // return Container( + // width: MediaQuery.of(context).size.width, // 屏幕宽度 + // height: MediaQuery.of(context).size.height, // 屏幕高度 + // child: Image.asset('assets/images/hyzp_yibin_launche.png', fit: BoxFit.cover), + // ); + //final double statusBarHeight = MediaQuery.of(context).padding.top; + return Scaffold( + body: Column( + children: [ + SizedBox(height: MediaQuery.of(context).padding.top), // 不覆盖顶部状态栏 + Container( + width: MediaQuery.of(context).size.width, // 屏幕宽度 + height: MediaQuery.of(context).size.height - MediaQuery.of(context).padding.top, // 屏幕高度 + child: Image.asset('assets/images/hyzp_yibin_launche.png', fit: BoxFit.cover), + // child: new Image.asset('assets/images/hyzp_ybqx_cuipingqu_launche.png'), + ), + ], ), ); }