CupertinoApp简介

IOS风格的应用框架,在此基础上可以使用Cupertino Widgets(IOS风格的组件)。其继承自WidgetsApp。

CupertinoApp属性概要

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