hyzp_ybqx-Commit145:设置文字大小不随系统字体设置改变
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -184,6 +184,13 @@ class _MyAppState extends State<MyApp> {
|
||||
theme: ThemeData(
|
||||
// primaryColor: Colors.yellow
|
||||
primaryColor: Colors.white),
|
||||
//设置文字大小不随系统字体设置改变
|
||||
builder: (context, widget) {
|
||||
return MediaQuery(
|
||||
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
|
||||
child: widget,
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user