CupertinoApp简介
IOS风格的应用框架,在此基础上可以使用Cupertino Widgets(IOS风格的组件)。其继承自WidgetsApp。
CupertinoApp属性概要
CupertinoApp({
// 键
Key key,
// 导航键
this.navigatorKey,
// 主页
this.home,
// 主题
this.theme,
// 路由
this.routes = const <String, WidgetBuilder>{},
// 初始路由
this.initialRoute,
// 生成路由
this.onGenerateRoute,
// 未知路由
this.onUnknownRoute,
// 导航观察器
this.navigatorObservers = const <NavigatorObserver>[],
// 生成器
this.builder,
// 标题
this.title = '',
// 生成标题
this.onGenerateTitle,
// 颜色
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.debugShowCheckedModeBanner = true,
})