Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit feb23af

Browse files
committed
[1.5.4] Remove Semantics relatives
1 parent 5b40d83 commit feb23af

File tree

2 files changed

+12
-46
lines changed

2 files changed

+12
-46
lines changed

Runtime/cupertino/app.cs

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,12 @@ public CupertinoApp(
2525
LocaleListResolutionCallback localeListResolutionCallback = null,
2626
LocaleResolutionCallback localeResolutionCallback = null,
2727
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
3329
) : base(key: key) {
3430
D.assert(routes != null);
3531
D.assert(navigatorObservers != null);
3632
D.assert(title != null);
3733
D.assert(showPerformanceOverlay != null);
38-
D.assert(checkerboardRasterCacheImages != null);
39-
D.assert(checkerboardOffscreenLayers != null);
40-
D.assert(showSemanticsDebugger != null);
41-
D.assert(debugShowCheckedModeBanner != null);
4234

4335
supportedLocales = supportedLocales ?? new List<Locale> {new Locale("en", "US")};
4436
this.navigatorKey = navigatorKey;
@@ -59,10 +51,6 @@ public CupertinoApp(
5951
this.localeResolutionCallback = localeResolutionCallback;
6052
this.supportedLocales = supportedLocales;
6153
this.showPerformanceOverlay = showPerformanceOverlay;
62-
this.checkerboardRasterCacheImages = checkerboardRasterCacheImages;
63-
this.checkerboardOffscreenLayers = checkerboardOffscreenLayers;
64-
this.showSemanticsDebugger = showSemanticsDebugger;
65-
this.debugShowCheckedModeBanner = debugShowCheckedModeBanner;
6654
}
6755

6856
public readonly GlobalKey<NavigatorState> navigatorKey;
@@ -83,10 +71,6 @@ public CupertinoApp(
8371
public readonly LocaleResolutionCallback localeResolutionCallback;
8472
public readonly List<Locale> supportedLocales;
8573
public readonly bool showPerformanceOverlay;
86-
public readonly bool checkerboardRasterCacheImages;
87-
public readonly bool checkerboardOffscreenLayers;
88-
public readonly bool showSemanticsDebugger;
89-
public readonly bool debugShowCheckedModeBanner;
9074

9175
public override State createState() {
9276
return new _CupertinoAppState();
@@ -157,18 +141,6 @@ List<LocalizationsDelegate> _localizationsDelegates {
157141
public override Widget build(BuildContext context) {
158142
CupertinoThemeData effectiveThemeData = this.widget.theme ?? new CupertinoThemeData();
159143

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-
172144
return new ScrollConfiguration(
173145
behavior: new _AlwaysCupertinoScrollBehavior(),
174146
child: new CupertinoTheme(
@@ -192,11 +164,17 @@ Widget _InspectorSelectButtonBuilder(BuildContext _context, VoidCallback onPress
192164
localeListResolutionCallback: this.widget.localeListResolutionCallback,
193165
supportedLocales: this.widget.supportedLocales,
194166
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+
}
200178
)
201179
)
202180
);

Runtime/widgets/app.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ public class WidgetsApp : StatefulWidget {
4242
public readonly string title;
4343
public readonly GenerateAppTitle onGenerateTitle;
4444
public readonly Color color;
45-
public readonly bool checkerboardRasterCacheImages;
46-
public readonly bool checkerboardOffscreenLayers;
47-
public readonly bool showSemanticsDebugger;
48-
public readonly bool debugShowCheckedModeBanner;
4945
public readonly InspectorSelectButtonBuilder inspectorSelectButtonBuilder;
5046

5147
public WidgetsApp(
@@ -69,10 +65,6 @@ public WidgetsApp(
6965
GenerateAppTitle onGenerateTitle = null,
7066
string title = "",
7167
Color color = null,
72-
bool checkerboardRasterCacheImages = false,
73-
bool checkerboardOffscreenLayers = false,
74-
bool showSemanticsDebugger = false,
75-
bool debugShowCheckedModeBanner = true,
7668
InspectorSelectButtonBuilder inspectorSelectButtonBuilder = null
7769
) : base(key) {
7870
routes = routes ?? new Dictionary<string, WidgetBuilder>();
@@ -98,10 +90,6 @@ public WidgetsApp(
9890
this.onGenerateTitle = onGenerateTitle;
9991
this.title = title;
10092
this.color = color;
101-
this.checkerboardRasterCacheImages = checkerboardRasterCacheImages;
102-
this.checkerboardOffscreenLayers = checkerboardOffscreenLayers;
103-
this.showSemanticsDebugger = showSemanticsDebugger;
104-
this.debugShowCheckedModeBanner = debugShowCheckedModeBanner;
10593
this.inspectorSelectButtonBuilder = inspectorSelectButtonBuilder;
10694

10795
D.assert(

0 commit comments

Comments
 (0)