hyzp_ybqx-Commit012:已经较好地实现启动画面的一致性,不覆盖顶部状态栏

master
WinUser01 4 years ago
parent e02fb58d41
commit b1c5e77365

@ -220,11 +220,30 @@ class _SplashScreenState extends State<SplashScreen> {
@override
Widget build(BuildContext context) {
return new Scaffold(
body: new Center(
child: new Image.asset('assets/images/hyzp_yibin_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: <Widget>[
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'),
),
],
),
);
}
}

Loading…
Cancel
Save