美文网首页
Flutter中MaterialApp参数详解

Flutter中MaterialApp参数详解

作者: 90后的晨仔 | 来源:发表于2020-07-01 14:30 被阅读0次

参数对应的详细介绍可以看这里点击这里

字段 类型
navigatorKey(导航键) GlobalKey<NavigatorState>
home(主页) Widget
routes(路由) Map<String, WidgetBuilder>
initialRoute(初始路由) String
onGenerateRoute(生成路由) RouteFactory
onUnknownRoute(未知路由) RouteFactory
navigatorObservers(导航观察器) List<NavigatorObserver>
builder(建造者) TransitionBuilder
title(标题) String
onGenerateTitle(生成标题) GenerateAppTitle
color(颜色) Color
theme(主题) ThemeData
locale(地点) Locale
localizationsDelegates(本地化委托) Iterable<LocalizationsDelegate<dynamic>>
localeResolutionCallback(区域分辨回调) LocaleResolutionCallback
supportedLocales(支持区域) Iterable<Locale>
debugShowMaterialGrid(调试显示材质网格) bool
showPerformanceOverlay(显示性能叠加) bool
checkerboardRasterCacheImages(棋盘格光栅缓存图像) bool
checkerboardOffscreenLayers(棋盘格层) bool
showSemanticsDebugger(显示语义调试器) bool
debugShowCheckedModeBanner(调试显示检查模式横幅) bool

相关文章

网友评论

      本文标题:Flutter中MaterialApp参数详解

      本文链接:https://www.haomeiwen.com/subject/xdwcqktx.html