From d19e3930489519b6caedc111d986c1aa96394785 Mon Sep 17 00:00:00 2001 From: zhang <494089941@qq.com> Date: Tue, 27 Oct 2020 11:22:36 +0800 Subject: [PATCH] no message --- lib/pages/sign/sign_in_page.dart | 2 +- lib/pages/tab_navigator.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/sign/sign_in_page.dart b/lib/pages/sign/sign_in_page.dart index 87db652d..8bf1b139 100644 --- a/lib/pages/sign/sign_in_page.dart +++ b/lib/pages/sign/sign_in_page.dart @@ -176,7 +176,7 @@ class _SignInPageState extends State { @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(), diff --git a/lib/pages/tab_navigator.dart b/lib/pages/tab_navigator.dart index 6129dc95..51d1fc97 100644 --- a/lib/pages/tab_navigator.dart +++ b/lib/pages/tab_navigator.dart @@ -35,7 +35,7 @@ class _TabNavigatorState extends State { @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 _bottomNav = [