WidgetsApp简介
WidgetsApp属性概要
WidgetsApp({
// 键
Key key,
// 导航键
this.navigatorKey,
// 生成路由
this.onGenerateRoute,
// 未知路由
this.onUnknownRoute,
// 导航观察器
this.navigatorObservers = const <NavigatorObserver>[],
// 初始化路由
this.initialRoute,
// 页面路由生成器
this.pageRouteBuilder,
// 主页
this.home,
// 路由
this.routes = const <String, WidgetBuilder>{},
// 生成器
this.builder,
// 标题
this.title = '',
// 生成标题
this.onGenerateTitle,
// 文字样式
this.textStyle,
// 颜色
@required this.color,
// 区域设置
this.locale,
// 本地化委托
this.localizationsDelegates,
// 语言环境列表解析回调
this.localeListResolutionCallback,
// 语言环境解析回调
this.localeResolutionCallback,
// 支持地区
this.supportedLocales = const <Locale>[Locale('en', 'US')],
// 显示性能叠加
this.showPerformanceOverlay = false,
// 棋盘格光栅缓存图像
this.checkerboardRasterCacheImages = false,
// 棋牌格层
this.checkerboardOffscreenLayers = false,
// 显示语义调试器
this.showSemanticsDebugger = false,
// 调试显示小部件检查器
this.debugShowWidgetInspector = false,
// 调试显示检查模式横幅
this.debugShowCheckedModeBanner = true,
// 选择按钮生成器
this.inspectorSelectButtonBuilder,
})