Skip to content

Commit 7b5462c

Browse files
docImports for the widgets library (flutter#152339)
flutter#150800. The 2nd batch of `widgets` library `@docImport`s. After this patch, in the `widgets` library: ``` Can not fully resolve ../../flutter/packages/flutter/lib/src/widgets/scroll_view.dart: (TargetPlatformVariant.mobile) Can not fully resolve ../../flutter/packages/flutter/lib/src/widgets/_platform_selectable_region_context_menu_web.dart: (ui_web.platformViewRegistry.registerViewFactory) Can not fully resolve ../../flutter/packages/flutter/lib/src/widgets/primary_scroll_controller.dart: (TargetPlatformVariant.mobile) Can not fully resolve ../../flutter/packages/flutter/lib/src/widgets/selectable_region.dart: (material, WidgetTester.dragFrom) Can not fully resolve ../../flutter/packages/flutter/lib/src/widgets/basic.dart: (ui.Gradient.linear) Can not fully resolve ../../flutter/packages/flutter/lib/src/widgets/framework.dart: (Finder) Can not fully resolve ../../flutter/packages/flutter/lib/src/widgets/draggable_scrollable_sheet.dart: (WidgetTester.pumpAndSettle) Can not fully resolve ../../flutter/packages/flutter/lib/src/widgets/binding.dart: (WidgetTester.restartAndRestore, WidgetTester.pumpWidget, TestWidgetsFlutterBinding, testWidgets, TestWidgetsFlutterBinding.ensureInitialized) Can not fully resolve ../../flutter/packages/flutter/lib/src/widgets/localizations.dart: (GlobalWidgetsLocalizations) Can not fully resolve ../../flutter/packages/flutter/lib/src/widgets/scroll_controller.dart: (WidgetTester.pumpAndSettle) Can not fully resolve ../../flutter/packages/flutter/lib/src/widgets/scrollbar.dart: (TargetPlatformVariant.desktop) 21 out-of-scope references in 11 files, 16 unique symbols were left unresolved. ```
1 parent 8f0e776 commit 7b5462c

File tree

7 files changed

+15
-11
lines changed

7 files changed

+15
-11
lines changed

packages/flutter/lib/src/widgets/app.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ class WidgetsApp extends StatefulWidget {
665665
///
666666
/// When a named route is pushed with [Navigator.pushNamed], the route name is
667667
/// looked up in this map. If the name is present, the associated
668-
/// [widgets.WidgetBuilder] is used to construct a [PageRoute] specified by
668+
/// [WidgetBuilder] is used to construct a [PageRoute] specified by
669669
/// [pageRouteBuilder] to perform an appropriate transition, including [Hero]
670670
/// animations, to the new route.
671671
///
@@ -1359,7 +1359,7 @@ class _WidgetsAppState extends State<WidgetsApp> with WidgetsBindingObserver {
13591359

13601360
AppLifecycleState? _appLifecycleState;
13611361

1362-
/// The default value for [onNavigationNotification].
1362+
/// The default value for [WidgetsApp.onNavigationNotification].
13631363
///
13641364
/// Does nothing and stops bubbling if the app is detached. Otherwise, updates
13651365
/// the platform with [NavigationNotification.canHandlePop] and stops

packages/flutter/lib/src/widgets/draggable_scrollable_sheet.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ class _DraggableScrollableActuatorState extends State<DraggableScrollableActuato
10711071
}
10721072
}
10731073

1074-
/// A [ChangeNotifier] to use with [InheritedResetNotifier] to notify
1074+
/// A [ChangeNotifier] to use with [_InheritedResetNotifier] to notify
10751075
/// descendants that they should reset to initial state.
10761076
class _ResetNotifier extends ChangeNotifier {
10771077
_ResetNotifier() {

packages/flutter/lib/src/widgets/editable_text.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5096,7 +5096,7 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien
50965096
}
50975097

50985098

5099-
/// The default behavior used if [onTapOutside] is null.
5099+
/// The default behavior used if [EditableText.onTapOutside] is null.
51005100
///
51015101
/// The `event` argument is the [PointerDownEvent] that caused the notification.
51025102
void _defaultOnTapOutside(PointerDownEvent event) {
@@ -5748,7 +5748,7 @@ class _ScribblePlaceholder extends WidgetSpan {
57485748
/// See also:
57495749
///
57505750
/// * [String.runes], which deals with code points like this class.
5751-
/// * [String.characters], which deals with graphemes.
5751+
/// * [Characters], which deals with graphemes.
57525752
/// * [CharacterBoundary], which is a [TextBoundary] like this class, but whose
57535753
/// boundaries are graphemes instead of code points.
57545754
class _CodePointBoundary extends TextBoundary {

packages/flutter/lib/src/widgets/framework.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,8 +2651,8 @@ final class BuildScope {
26512651
///
26522652
/// This is necessary to preserve the sort order defined by [Element._sort].
26532653
///
2654-
/// This field is set to null when [buildScope] is not actively rebuilding
2655-
/// the widget tree.
2654+
/// This field is set to null when [BuildOwner.buildScope] is not actively
2655+
/// rebuilding the widget tree.
26562656
bool? _dirtyElementsNeedsResorting;
26572657
final List<Element> _dirtyElements = <Element>[];
26582658

packages/flutter/lib/src/widgets/modal_barrier.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import 'transitions.dart';
3131
/// * [ModalBarrier], which utilizes this widget to adjust the barrier focus
3232
/// size based on the size of the content layer rendered on top of it.
3333
class _SemanticsClipper extends SingleChildRenderObjectWidget{
34-
/// creates a [SemanticsClipper] that updates the size of the
34+
/// creates a [_SemanticsClipper] that updates the size of the
3535
/// [SemanticsNode.rect] of its child based on the value inside the provided
3636
/// [ValueNotifier], or a default value of [EdgeInsets.zero].
3737
const _SemanticsClipper({

packages/flutter/lib/src/widgets/service_extensions.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'dart:developer';
56
/// @docImport 'package:flutter/foundation.dart';
67
/// @docImport 'package:flutter/rendering.dart';
78
///

packages/flutter/lib/src/widgets/widget_inspector.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'dart:ui';
6+
library;
7+
58
import 'dart:async';
69
import 'dart:collection' show HashMap;
710
import 'dart:convert';
@@ -543,11 +546,11 @@ class _ScreenshotPaintingContext extends PaintingContext {
543546
/// size of [renderBounds] multiplied by [pixelRatio].
544547
///
545548
/// To use [toImage], the render object must have gone through the paint phase
546-
/// (i.e. [debugNeedsPaint] must be false).
549+
/// (i.e. [RenderObject.debugNeedsPaint] must be false).
547550
///
548551
/// The [pixelRatio] describes the scale between the logical pixels and the
549552
/// size of the output image. It is independent of the
550-
/// [window.devicePixelRatio] for the device, so specifying 1.0 (the default)
553+
/// [FlutterView.devicePixelRatio] for the device, so specifying 1.0 (the default)
551554
/// will give you a 1:1 mapping between logical pixels and the output pixels
552555
/// in the image.
553556
///
@@ -917,7 +920,7 @@ mixin WidgetInspectorService {
917920
/// `value` reflects the newly updated service extension value.
918921
///
919922
/// This will be called automatically for service extensions registered via
920-
/// [registerBoolServiceExtension].
923+
/// [BindingBase.registerBoolServiceExtension].
921924
void _postExtensionStateChangedEvent(String name, Object? value) {
922925
postEvent(
923926
'Flutter.ServiceExtensionStateChanged',

0 commit comments

Comments
 (0)