hmxc
张萌 4 years ago
parent 1d38844e9d
commit d19e393048

@ -176,7 +176,7 @@ class _SignInPageState extends State<SignInPage> {
@override
Widget build(BuildContext context) {
double _statusHeight = MediaQuery.of(context).padding.top;
ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: true);
ScreenUtil.init(context, designSize: Size(750, 1334), allowFontScaling: true);
return Scaffold(
backgroundColor: Colors.white,
appBar: _appBar(),

@ -35,7 +35,7 @@ class _TabNavigatorState extends State<TabNavigator> {
@override
Widget build(BuildContext context) {
ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: true);
ScreenUtil.init(context, designSize: Size(750, 1334), allowFontScaling: true);
double iconSize = ScreenUtil().setWidth(44);
//
List<BottomNavigationBarItem> _bottomNav = <BottomNavigationBarItem>[

Loading…
Cancel
Save