From af3d954e75d5fab8c57ecf180be019d03d8fb6c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=A4=A9?= Date: Fri, 14 Jul 2023 18:19:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A2=E7=B4=A2=E4=B8=BA=E4=BB=80=E4=B9=88Sc?= =?UTF-8?q?affold=E6=B2=A1=E6=9C=89=E8=AE=BE=E7=BD=AEresizeToAvoidBottomIn?= =?UTF-8?q?set:=20false=E5=B1=9E=E6=80=A7=EF=BC=8C=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BB=8D=E7=84=B6=E4=B8=8D=E4=BC=9A=E8=A2=AB=E8=BD=AF=E9=94=AE?= =?UTF-8?q?=E7=9B=98=E6=92=91=E5=BC=80=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=88?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=BD=AF=E9=94=AE=E7=9B=98=E4=BC=9A=E6=92=91?= =?UTF-8?q?=E5=BC=80=EF=BC=89=EF=BC=8C=E9=97=AE=E9=A2=98=E5=9C=A8=E4=BA=8E?= =?UTF-8?q?ScreenUtilInit=E7=9A=84useInheritedMediaQuery=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BAfalse=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 2 ++ lib/modules/sign_up/sign_up_page.dart | 13 ++++++------- pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 614b428..64c53a3 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -19,6 +19,8 @@ class MyApp extends StatelessWidget { Widget build(BuildContext context) { return ScreenUtilInit( designSize: Size(375, 812), + // 如果不把这歌参数设为true 那么column就不会随着软键盘而变化 + // useInheritedMediaQuery: true, builder: (BuildContext context, Widget? child) { return RefreshConfiguration( headerBuilder: () => ClassicHeader(), diff --git a/lib/modules/sign_up/sign_up_page.dart b/lib/modules/sign_up/sign_up_page.dart index c561935..4e56641 100644 --- a/lib/modules/sign_up/sign_up_page.dart +++ b/lib/modules/sign_up/sign_up_page.dart @@ -181,7 +181,7 @@ class SignUpPage extends GetView { @override Widget build(BuildContext context) { return Scaffold( - // resizeToAvoidBottomInset: false, + resizeToAvoidBottomInset: false, appBar: transparentAppBar( leading: IconButton( icon: Icon( @@ -206,15 +206,14 @@ class SignUpPage extends GetView { Divider(height: 1), _buildLogo(), _buildInputForm(), - // Spacer(), - SizedBox(height: 200.h,), - SizedBox(height: 80.h,), - // _buildThirdPartyLogin(), - // _buildHaveAccountButton(), - ElevatedButton(onPressed: (){}, child: Text('测试')) + Spacer(), + _buildThirdPartyLogin(), + _buildHaveAccountButton(), ], ), ), ); } } + + diff --git a/pubspec.yaml b/pubspec.yaml index 9f8665f..75e90f7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -43,7 +43,7 @@ dependencies: get: ^4.6.5 # 屏幕适配 - flutter_screenutil: ^5.0.0+2 + flutter_screenutil: ^5.7.0 # http dio: ^4.0.0