@override
Widget build(BuildContext context) {
return MaterialApp(
navigatorKey: widget.globalRouteKey,
theme: ThemeData(
primaryColor: Colors.yellow,
accentColor: Colors.amber,
highlightColor: Color.fromRGBO(255, 255, 255, 0.6),
// 水波纹颜色
splashColor: Colors.yellow,
fontFamily: 'Roboto',
),
//是否取消右上角的DEBUG标签
debugShowCheckedModeBanner: false,
onGenerateRoute: MyRouter.Router.fluroRouter.generator,
//是否显示性能调试
showPerformanceOverlay: false,
builder: (context, widget) {
return MediaQuery(
//设置文字大小比例
data: MediaQuery.of(context).copyWith(textScaleFactor: 0.9),
child: widget,
);
},
);
}