hyzp_ybqx-Commit145:设置文字大小不随系统字体设置改变

master
WinUser01 4 years ago
parent 5f4c95c744
commit e15d953342

@ -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,
);
},
),
),
);

Loading…
Cancel
Save