From e15d953342b6ffc2c334137b8f3f894662b149ea Mon Sep 17 00:00:00 2001 From: WinUser01 Date: Wed, 4 May 2022 09:11:05 +0800 Subject: [PATCH] =?UTF-8?q?hyzp=5Fybqx-Commit145=EF=BC=9A=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E5=AD=97=E5=A4=A7=E5=B0=8F=E4=B8=8D=E9=9A=8F?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=AD=97=E4=BD=93=E8=AE=BE=E7=BD=AE=E6=94=B9?= =?UTF-8?q?=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/components/commonFun.dart | 2 +- lib/main.dart | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/components/commonFun.dart b/lib/components/commonFun.dart index b601d3b..96fc6cf 100644 --- a/lib/components/commonFun.dart +++ b/lib/components/commonFun.dart @@ -875,7 +875,7 @@ Widget getImageWidget() { color: Color.fromRGBO(49, 216, 123, 1), fontWeight: FontWeight.bold)), ), - SizedBox(height: ScreenUtil().setHeight(copyright_info.contains('\n') ? 40 : 90)), + SizedBox(height: ScreenUtil().setHeight(copyright_info.contains('\n') ? 25 : 90)), Container( alignment: Alignment.center, child: Text(copyright_info, diff --git a/lib/main.dart b/lib/main.dart index 9864b49..61fbf21 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -184,6 +184,13 @@ class _MyAppState extends State { theme: ThemeData( // primaryColor: Colors.yellow primaryColor: Colors.white), + //设置文字大小不随系统字体设置改变 + builder: (context, widget) { + return MediaQuery( + data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0), + child: widget, + ); + }, ), ), );