WidgetsApp简介

WidgetsApp属性概要

  1. WidgetsApp({
  2. // 键
  3. Key key,
  4. // 导航键
  5. this.navigatorKey,
  6. // 生成路由
  7. this.onGenerateRoute,
  8. // 未知路由
  9. this.onUnknownRoute,
  10. // 导航观察器
  11. this.navigatorObservers = const <NavigatorObserver>[],
  12. // 初始化路由
  13. this.initialRoute,
  14. // 页面路由生成器
  15. this.pageRouteBuilder,
  16. // 主页
  17. this.home,
  18. // 路由
  19. this.routes = const <String, WidgetBuilder>{},
  20. // 生成器
  21. this.builder,
  22. // 标题
  23. this.title = '',
  24. // 生成标题
  25. this.onGenerateTitle,
  26. // 文字样式
  27. this.textStyle,
  28. // 颜色
  29. @required this.color,
  30. // 区域设置
  31. this.locale,
  32. // 本地化委托
  33. this.localizationsDelegates,
  34. // 语言环境列表解析回调
  35. this.localeListResolutionCallback,
  36. // 语言环境解析回调
  37. this.localeResolutionCallback,
  38. // 支持地区
  39. this.supportedLocales = const <Locale>[Locale('en', 'US')],
  40. // 显示性能叠加
  41. this.showPerformanceOverlay = false,
  42. // 棋盘格光栅缓存图像
  43. this.checkerboardRasterCacheImages = false,
  44. // 棋牌格层
  45. this.checkerboardOffscreenLayers = false,
  46. // 显示语义调试器
  47. this.showSemanticsDebugger = false,
  48. // 调试显示小部件检查器
  49. this.debugShowWidgetInspector = false,
  50. // 调试显示检查模式横幅
  51. this.debugShowCheckedModeBanner = true,
  52. // 选择按钮生成器
  53. this.inspectorSelectButtonBuilder,
  54. })