@@ -25,20 +25,12 @@ public CupertinoApp(
25
25
LocaleListResolutionCallback localeListResolutionCallback = null ,
26
26
LocaleResolutionCallback localeResolutionCallback = null ,
27
27
List < Locale > supportedLocales = null ,
28
- bool showPerformanceOverlay = false ,
29
- bool checkerboardRasterCacheImages = false ,
30
- bool checkerboardOffscreenLayers = false ,
31
- bool showSemanticsDebugger = false ,
32
- bool debugShowCheckedModeBanner = true
28
+ bool showPerformanceOverlay = false
33
29
) : base ( key : key ) {
34
30
D . assert ( routes != null ) ;
35
31
D . assert ( navigatorObservers != null ) ;
36
32
D . assert ( title != null ) ;
37
33
D . assert ( showPerformanceOverlay != null ) ;
38
- D . assert ( checkerboardRasterCacheImages != null ) ;
39
- D . assert ( checkerboardOffscreenLayers != null ) ;
40
- D . assert ( showSemanticsDebugger != null ) ;
41
- D . assert ( debugShowCheckedModeBanner != null ) ;
42
34
43
35
supportedLocales = supportedLocales ?? new List < Locale > { new Locale ( "en" , "US" ) } ;
44
36
this . navigatorKey = navigatorKey ;
@@ -59,10 +51,6 @@ public CupertinoApp(
59
51
this . localeResolutionCallback = localeResolutionCallback ;
60
52
this . supportedLocales = supportedLocales ;
61
53
this . showPerformanceOverlay = showPerformanceOverlay ;
62
- this . checkerboardRasterCacheImages = checkerboardRasterCacheImages ;
63
- this . checkerboardOffscreenLayers = checkerboardOffscreenLayers ;
64
- this . showSemanticsDebugger = showSemanticsDebugger ;
65
- this . debugShowCheckedModeBanner = debugShowCheckedModeBanner ;
66
54
}
67
55
68
56
public readonly GlobalKey < NavigatorState > navigatorKey ;
@@ -83,10 +71,6 @@ public CupertinoApp(
83
71
public readonly LocaleResolutionCallback localeResolutionCallback ;
84
72
public readonly List < Locale > supportedLocales ;
85
73
public readonly bool showPerformanceOverlay ;
86
- public readonly bool checkerboardRasterCacheImages ;
87
- public readonly bool checkerboardOffscreenLayers ;
88
- public readonly bool showSemanticsDebugger ;
89
- public readonly bool debugShowCheckedModeBanner ;
90
74
91
75
public override State createState ( ) {
92
76
return new _CupertinoAppState ( ) ;
@@ -157,18 +141,6 @@ List<LocalizationsDelegate> _localizationsDelegates {
157
141
public override Widget build ( BuildContext context ) {
158
142
CupertinoThemeData effectiveThemeData = this . widget . theme ?? new CupertinoThemeData ( ) ;
159
143
160
- Widget _InspectorSelectButtonBuilder ( BuildContext _context , VoidCallback onPressed ) {
161
- return CupertinoButton . filled (
162
- child : new Icon (
163
- CupertinoIcons . search ,
164
- size : 28.0f ,
165
- color : CupertinoColors . white
166
- ) ,
167
- padding : EdgeInsets . zero ,
168
- onPressed : onPressed
169
- ) ;
170
- }
171
-
172
144
return new ScrollConfiguration (
173
145
behavior : new _AlwaysCupertinoScrollBehavior ( ) ,
174
146
child : new CupertinoTheme (
@@ -192,11 +164,17 @@ Widget _InspectorSelectButtonBuilder(BuildContext _context, VoidCallback onPress
192
164
localeListResolutionCallback : this . widget . localeListResolutionCallback ,
193
165
supportedLocales : this . widget . supportedLocales ,
194
166
showPerformanceOverlay : this . widget . showPerformanceOverlay ,
195
- checkerboardRasterCacheImages : this . widget . checkerboardRasterCacheImages ,
196
- checkerboardOffscreenLayers : this . widget . checkerboardOffscreenLayers ,
197
- showSemanticsDebugger : this . widget . showSemanticsDebugger ,
198
- debugShowCheckedModeBanner : this . widget . debugShowCheckedModeBanner ,
199
- inspectorSelectButtonBuilder : _InspectorSelectButtonBuilder
167
+ inspectorSelectButtonBuilder : ( BuildContext _context , VoidCallback onPressed ) => {
168
+ return CupertinoButton . filled (
169
+ child : new Icon (
170
+ CupertinoIcons . search ,
171
+ size : 28.0f ,
172
+ color : CupertinoColors . white
173
+ ) ,
174
+ padding : EdgeInsets . zero ,
175
+ onPressed : onPressed
176
+ ) ;
177
+ }
200
178
)
201
179
)
202
180
) ;
0 commit comments