Enable library_private_types_in_public_api lint (#81578)
This commit is contained in:
committed by
GitHub
parent
b878b11f0c
commit
b8a2456737
@@ -8,8 +8,7 @@ class AnimationWithMicrotasks extends StatefulWidget {
|
||||
const AnimationWithMicrotasks({Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_AnimationWithMicrotasksState createState() =>
|
||||
_AnimationWithMicrotasksState();
|
||||
State<AnimationWithMicrotasks> createState() => _AnimationWithMicrotasksState();
|
||||
}
|
||||
|
||||
class _AnimationWithMicrotasksState extends State<AnimationWithMicrotasks> {
|
||||
|
||||
@@ -10,7 +10,7 @@ class BackdropFilterPage extends StatefulWidget {
|
||||
const BackdropFilterPage({Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_BackdropFilterPageState createState() => _BackdropFilterPageState();
|
||||
State<BackdropFilterPage> createState() => _BackdropFilterPageState();
|
||||
}
|
||||
|
||||
class _BackdropFilterPageState extends State<BackdropFilterPage> with TickerProviderStateMixin {
|
||||
|
||||
@@ -12,7 +12,7 @@ class ColorFilterAndFadePage extends StatefulWidget {
|
||||
const ColorFilterAndFadePage({Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_ColorFilterAndFadePageState createState() => _ColorFilterAndFadePageState();
|
||||
State<ColorFilterAndFadePage> createState() => _ColorFilterAndFadePageState();
|
||||
}
|
||||
|
||||
class _ColorFilterAndFadePageState extends State<ColorFilterAndFadePage> with TickerProviderStateMixin {
|
||||
|
||||
@@ -23,7 +23,7 @@ class FilteredChildAnimationPage extends StatefulWidget {
|
||||
final bool initialUseRepaintBoundary;
|
||||
|
||||
@override
|
||||
_FilteredChildAnimationPageState createState() => _FilteredChildAnimationPageState();
|
||||
State<FilteredChildAnimationPage> createState() => _FilteredChildAnimationPageState();
|
||||
}
|
||||
|
||||
class _FilteredChildAnimationPageState extends State<FilteredChildAnimationPage> with SingleTickerProviderStateMixin {
|
||||
|
||||
@@ -11,7 +11,7 @@ class LargeImageChangerPage extends StatefulWidget {
|
||||
const LargeImageChangerPage({Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_LargeImageChangerState createState() => _LargeImageChangerState();
|
||||
State<LargeImageChangerPage> createState() => _LargeImageChangerState();
|
||||
}
|
||||
|
||||
class _LargeImageChangerState extends State<LargeImageChangerPage> {
|
||||
|
||||
@@ -12,8 +12,7 @@ class MultiWidgetConstructTable extends StatefulWidget {
|
||||
final int rowCount;
|
||||
|
||||
@override
|
||||
_MultiWidgetConstructTableState createState() =>
|
||||
_MultiWidgetConstructTableState();
|
||||
State<MultiWidgetConstructTable> createState() => _MultiWidgetConstructTableState();
|
||||
}
|
||||
|
||||
class _MultiWidgetConstructTableState extends State<MultiWidgetConstructTable>
|
||||
|
||||
@@ -10,7 +10,7 @@ class PostBackdropFilterPage extends StatefulWidget {
|
||||
const PostBackdropFilterPage({Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_PostBackdropFilterPageState createState() => _PostBackdropFilterPageState();
|
||||
State<PostBackdropFilterPage> createState() => _PostBackdropFilterPageState();
|
||||
}
|
||||
|
||||
class _PostBackdropFilterPageState extends State<PostBackdropFilterPage> with TickerProviderStateMixin {
|
||||
|
||||
@@ -37,12 +37,12 @@ class _NestedMouseRegion extends StatelessWidget {
|
||||
/// Measures our ability to hit test mouse regions.
|
||||
class BenchMouseRegionGridHover extends WidgetRecorder {
|
||||
BenchMouseRegionGridHover() : super(name: benchmarkName) {
|
||||
tester = _Tester(onDataPoint: handleDataPoint);
|
||||
_tester = _Tester(onDataPoint: handleDataPoint);
|
||||
}
|
||||
|
||||
static const String benchmarkName = 'bench_mouse_region_grid_hover';
|
||||
|
||||
_Tester tester;
|
||||
_Tester _tester;
|
||||
|
||||
void handleDataPoint(Duration duration) {
|
||||
profile.addDataPoint('hitTestDuration', duration, reported: true);
|
||||
@@ -67,8 +67,8 @@ class BenchMouseRegionGridHover extends WidgetRecorder {
|
||||
if (!started) {
|
||||
started = true;
|
||||
SchedulerBinding.instance.addPostFrameCallback((Duration timeStamp) async {
|
||||
tester.start();
|
||||
registerDidStop(tester.stop);
|
||||
_tester.start();
|
||||
registerDidStop(_tester.stop);
|
||||
});
|
||||
}
|
||||
super.frameDidDraw();
|
||||
|
||||
@@ -21,7 +21,7 @@ class BenchMouseRegionGridScroll extends WidgetRecorder {
|
||||
|
||||
static const String benchmarkName = 'bench_mouse_region_grid_scroll';
|
||||
|
||||
final _Tester tester = _Tester();
|
||||
final _Tester _tester = _Tester();
|
||||
|
||||
// Use a non-trivial border to force Web to switch painter
|
||||
Border _getBorder(int columnIndex, int rowIndex) {
|
||||
@@ -42,8 +42,8 @@ class BenchMouseRegionGridScroll extends WidgetRecorder {
|
||||
if (!started) {
|
||||
started = true;
|
||||
SchedulerBinding.instance.addPostFrameCallback((Duration timeStamp) async {
|
||||
tester.start();
|
||||
registerDidStop(tester.stop);
|
||||
_tester.start();
|
||||
registerDidStop(_tester.stop);
|
||||
});
|
||||
}
|
||||
super.frameDidDraw();
|
||||
|
||||
@@ -56,12 +56,12 @@ class _NestedListener extends StatelessWidget {
|
||||
/// Measures our ability to hit test mouse regions.
|
||||
class BenchMouseRegionMixedGridHover extends WidgetRecorder {
|
||||
BenchMouseRegionMixedGridHover() : super(name: benchmarkName) {
|
||||
tester = _Tester(onDataPoint: handleDataPoint);
|
||||
_tester = _Tester(onDataPoint: handleDataPoint);
|
||||
}
|
||||
|
||||
static const String benchmarkName = 'bench_mouse_region_mixed_grid_hover';
|
||||
|
||||
_Tester tester;
|
||||
_Tester _tester;
|
||||
|
||||
void handleDataPoint(Duration duration) {
|
||||
profile.addDataPoint('hitTestDuration', duration, reported: true);
|
||||
@@ -86,8 +86,8 @@ class BenchMouseRegionMixedGridHover extends WidgetRecorder {
|
||||
if (!started) {
|
||||
started = true;
|
||||
SchedulerBinding.instance.addPostFrameCallback((Duration timeStamp) async {
|
||||
tester.start();
|
||||
registerDidStop(tester.stop);
|
||||
_tester.start();
|
||||
registerDidStop(_tester.stop);
|
||||
});
|
||||
}
|
||||
super.frameDidDraw();
|
||||
|
||||
@@ -203,11 +203,11 @@ enum _TestMode {
|
||||
/// colors. Each color's description is made of several [Text] nodes.
|
||||
class BenchBuildColorsGrid extends WidgetBuildRecorder {
|
||||
BenchBuildColorsGrid.canvas()
|
||||
: mode = _TestMode.useCanvasTextLayout, super(name: canvasBenchmarkName);
|
||||
: _mode = _TestMode.useCanvasTextLayout, super(name: canvasBenchmarkName);
|
||||
BenchBuildColorsGrid.dom()
|
||||
: mode = _TestMode.useDomTextLayout, super(name: domBenchmarkName);
|
||||
: _mode = _TestMode.useDomTextLayout, super(name: domBenchmarkName);
|
||||
BenchBuildColorsGrid.canvasKit()
|
||||
: mode = _TestMode.useCanvasKit, super(name: canvasKitBenchmarkName);
|
||||
: _mode = _TestMode.useCanvasKit, super(name: canvasKitBenchmarkName);
|
||||
|
||||
/// Disables tracing for this benchmark.
|
||||
///
|
||||
@@ -224,16 +224,16 @@ class BenchBuildColorsGrid extends WidgetBuildRecorder {
|
||||
static const String canvasKitBenchmarkName = 'text_canvas_kit_color_grid';
|
||||
|
||||
/// Whether to use the new canvas-based text measurement implementation.
|
||||
final _TestMode mode;
|
||||
final _TestMode _mode;
|
||||
|
||||
num _textLayoutMicros = 0;
|
||||
|
||||
@override
|
||||
Future<void> setUpAll() async {
|
||||
if (mode == _TestMode.useCanvasTextLayout) {
|
||||
if (_mode == _TestMode.useCanvasTextLayout) {
|
||||
_useCanvasText(true);
|
||||
}
|
||||
if (mode == _TestMode.useDomTextLayout) {
|
||||
if (_mode == _TestMode.useDomTextLayout) {
|
||||
_useCanvasText(false);
|
||||
}
|
||||
registerEngineBenchmarkValueListener('text_layout', (num value) {
|
||||
@@ -258,7 +258,7 @@ class BenchBuildColorsGrid extends WidgetBuildRecorder {
|
||||
// We need to do this before calling [super.frameDidDraw] because the latter
|
||||
// updates the value of [showWidget] in preparation for the next frame.
|
||||
// TODO(yjbanov): https://github.com/flutter/flutter/issues/53877
|
||||
if (showWidget && mode != _TestMode.useCanvasKit) {
|
||||
if (showWidget && _mode != _TestMode.useCanvasKit) {
|
||||
profile.addDataPoint(
|
||||
'text_layout',
|
||||
Duration(microseconds: _textLayoutMicros.toInt()),
|
||||
|
||||
@@ -34,7 +34,7 @@ class MyHomePage extends StatefulWidget {
|
||||
final String title;
|
||||
|
||||
@override
|
||||
_MyHomePageState createState() => _MyHomePageState();
|
||||
State<MyHomePage> createState() => _MyHomePageState();
|
||||
}
|
||||
|
||||
class _MyHomePageState extends State<MyHomePage> {
|
||||
|
||||
@@ -34,7 +34,7 @@ class MyHomePage extends StatefulWidget {
|
||||
final String? title;
|
||||
|
||||
@override
|
||||
_MyHomePageState createState() => _MyHomePageState();
|
||||
State<MyHomePage> createState() => _MyHomePageState();
|
||||
}
|
||||
|
||||
class _MyHomePageState extends State<MyHomePage> {
|
||||
|
||||
@@ -99,7 +99,7 @@ class RotationContainer extends StatefulWidget {
|
||||
const RotationContainer({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_RotationContainerState createState() => _RotationContainerState();
|
||||
State<RotationContainer> createState() => _RotationContainerState();
|
||||
}
|
||||
|
||||
class _RotationContainerState extends State<RotationContainer>
|
||||
|
||||
@@ -104,7 +104,7 @@ class RotationContainer extends StatefulWidget {
|
||||
const RotationContainer({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_RotationContainerState createState() => _RotationContainerState();
|
||||
State<RotationContainer> createState() => _RotationContainerState();
|
||||
}
|
||||
|
||||
class _RotationContainerState extends State<RotationContainer>
|
||||
|
||||
Reference in New Issue
Block a user