赞
踩
使用 SafeArea 将页面套起来 top bottom 都设置为true
- SafeArea(
- top: false,
- bottom: false,
- child: Container(
- child: _body(),
- ),
- ),
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: []);
overlays 中可以填需要展示的 如 填了SystemUiOverlay.bottom 就是需要展示 底部
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [
SystemUiOverlay.bottom ] );
- var brightness =
- !kIsWeb && Platform.isAndroid ? Brightness.dark : Brightness.light;
- SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
- statusBarColor: Colors.transparent,
- statusBarBrightness: brightness,
- statusBarIconBrightness: brightness,
- ));
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。