From 52e2ca38fcacedf59ef519f15d05d20623473dab Mon Sep 17 00:00:00 2001 From: Janice Collins Date: Thu, 1 Jul 2021 15:06:05 -0700 Subject: [PATCH] squash (#85484) --- packages/flutter/lib/src/cupertino/app.dart | 5 +++-- .../flutter/lib/src/cupertino/tab_view.dart | 5 +++-- packages/flutter/lib/src/material/app.dart | 5 +++-- .../flutter/lib/src/semantics/semantics.dart | 18 ++++++++++-------- packages/flutter/lib/src/widgets/app.dart | 2 +- .../flutter_driver/lib/src/common/find.dart | 7 ++++--- .../flutter_driver/lib/src/driver/driver.dart | 3 ++- packages/flutter_test/lib/src/goldens.dart | 2 +- 8 files changed, 27 insertions(+), 20 deletions(-) diff --git a/packages/flutter/lib/src/cupertino/app.dart b/packages/flutter/lib/src/cupertino/app.dart index 51ac1c9c02..4e7285110f 100644 --- a/packages/flutter/lib/src/cupertino/app.dart +++ b/packages/flutter/lib/src/cupertino/app.dart @@ -242,8 +242,9 @@ class CupertinoApp extends StatefulWidget { /// /// When a named route is pushed with [Navigator.pushNamed], the route name is /// looked up in this map. If the name is present, the associated - /// [WidgetBuilder] is used to construct a [CupertinoPageRoute] that performs - /// an appropriate transition, including [Hero] animations, to the new route. + /// [widgets.WidgetBuilder] is used to construct a [CupertinoPageRoute] that + /// performs an appropriate transition, including [Hero] animations, to the + /// new route. /// /// {@macro flutter.widgets.widgetsApp.routes} final Map? routes; diff --git a/packages/flutter/lib/src/cupertino/tab_view.dart b/packages/flutter/lib/src/cupertino/tab_view.dart index 292866f724..955d94033e 100644 --- a/packages/flutter/lib/src/cupertino/tab_view.dart +++ b/packages/flutter/lib/src/cupertino/tab_view.dart @@ -89,8 +89,9 @@ class CupertinoTabView extends StatefulWidget { /// /// When a named route is pushed with [Navigator.pushNamed] inside this tab view, /// the route name is looked up in this map. If the name is present, - /// the associated [WidgetBuilder] is used to construct a [CupertinoPageRoute] - /// that performs an appropriate transition to the new route. + /// the associated [widgets.WidgetBuilder] is used to construct a + /// [CupertinoPageRoute] that performs an appropriate transition to the new + /// route. /// /// If the tab view only has one page, then you can specify it using [builder] instead. /// diff --git a/packages/flutter/lib/src/material/app.dart b/packages/flutter/lib/src/material/app.dart index 02983a2749..8a48799579 100644 --- a/packages/flutter/lib/src/material/app.dart +++ b/packages/flutter/lib/src/material/app.dart @@ -284,8 +284,9 @@ class MaterialApp extends StatefulWidget { /// /// When a named route is pushed with [Navigator.pushNamed], the route name is /// looked up in this map. If the name is present, the associated - /// [WidgetBuilder] is used to construct a [MaterialPageRoute] that performs - /// an appropriate transition, including [Hero] animations, to the new route. + /// [widgets.WidgetBuilder] is used to construct a [MaterialPageRoute] that + /// performs an appropriate transition, including [Hero] animations, to the + /// new route. /// /// {@macro flutter.widgets.widgetsApp.routes} final Map? routes; diff --git a/packages/flutter/lib/src/semantics/semantics.dart b/packages/flutter/lib/src/semantics/semantics.dart index 26c3959d9e..bd391ce549 100644 --- a/packages/flutter/lib/src/semantics/semantics.dart +++ b/packages/flutter/lib/src/semantics/semantics.dart @@ -3289,8 +3289,9 @@ class SemanticsConfiguration { /// This is a request to increase the value represented by the widget. For /// example, this action might be recognized by a slider control. /// - /// If a [value] is set, [increasedValue] must also be provided and - /// [onIncrease] must ensure that [value] will be set to [increasedValue]. + /// If [this.value] is set, [increasedValue] must also be provided and + /// [onIncrease] must ensure that [this.value] will be set to + /// [increasedValue]. /// /// VoiceOver users on iOS can trigger this action by swiping up with one /// finger. TalkBack users on Android can trigger this action by pressing the @@ -3307,8 +3308,9 @@ class SemanticsConfiguration { /// This is a request to decrease the value represented by the widget. For /// example, this action might be recognized by a slider control. /// - /// If a [value] is set, [decreasedValue] must also be provided and - /// [onDecrease] must ensure that [value] will be set to [decreasedValue]. + /// If [this.value] is set, [decreasedValue] must also be provided and + /// [onDecrease] must ensure that [this.value] will be set to + /// [decreasedValue]. /// /// VoiceOver users on iOS can trigger this action by swiping down with one /// finger. TalkBack users on Android can trigger this action by pressing the @@ -4102,11 +4104,11 @@ class SemanticsConfiguration { _setFlag(SemanticsFlag.isReadOnly, value); } - /// Whether the [value] should be obscured. + /// Whether [this.value] should be obscured. /// /// This option is usually set in combination with [isTextField] to indicate /// that the text field contains a password (or other sensitive information). - /// Doing so instructs screen readers to not read out the [value]. + /// Doing so instructs screen readers to not read out [this.value]. bool get isObscured => _hasFlag(SemanticsFlag.isObscured); set isObscured(bool value) { _setFlag(SemanticsFlag.isObscured, value); @@ -4133,8 +4135,8 @@ class SemanticsConfiguration { _setFlag(SemanticsFlag.hasImplicitScrolling, value); } - /// The currently selected text (or the position of the cursor) within [value] - /// if this node represents a text field. + /// The currently selected text (or the position of the cursor) within + /// [this.value] if this node represents a text field. TextSelection? get textSelection => _textSelection; TextSelection? _textSelection; set textSelection(TextSelection? value) { diff --git a/packages/flutter/lib/src/widgets/app.dart b/packages/flutter/lib/src/widgets/app.dart index 7947faa96b..de53a989dd 100644 --- a/packages/flutter/lib/src/widgets/app.dart +++ b/packages/flutter/lib/src/widgets/app.dart @@ -610,7 +610,7 @@ class WidgetsApp extends StatefulWidget { /// /// When a named route is pushed with [Navigator.pushNamed], the route name is /// looked up in this map. If the name is present, the associated - /// [WidgetBuilder] is used to construct a [PageRoute] specified by + /// [widgets.WidgetBuilder] is used to construct a [PageRoute] specified by /// [pageRouteBuilder] to perform an appropriate transition, including [Hero] /// animations, to the new route. /// diff --git a/packages/flutter_driver/lib/src/common/find.dart b/packages/flutter_driver/lib/src/common/find.dart index 55108112f5..d646bc727c 100644 --- a/packages/flutter_driver/lib/src/common/find.dart +++ b/packages/flutter_driver/lib/src/common/find.dart @@ -178,13 +178,14 @@ class BySemanticsLabel extends SerializableFinder { } } -/// A Flutter Driver finder that finds widgets by [text] inside a [Text] or -/// [EditableText] widget. +/// A Flutter Driver finder that finds widgets by [text] inside a +/// [widgets.Text] or [widgets.EditableText] widget. class ByText extends SerializableFinder { /// Creates a text finder given the text. const ByText(this.text); - /// The text that appears inside the [Text] or [EditableText] widget. + /// The text that appears inside the [widgets.Text] or [widgets.EditableText] + /// widget. final String text; @override diff --git a/packages/flutter_driver/lib/src/driver/driver.dart b/packages/flutter_driver/lib/src/driver/driver.dart index 197352068c..32a06615c6 100644 --- a/packages/flutter_driver/lib/src/driver/driver.dart +++ b/packages/flutter_driver/lib/src/driver/driver.dart @@ -742,7 +742,8 @@ abstract class FlutterDriver { class CommonFinders { const CommonFinders._(); - /// Finds [Text] and [EditableText] widgets containing string equal to [text]. + /// Finds [widgets.Text] and [widgets.EditableText] widgets containing string + /// equal to [text]. SerializableFinder text(String text) => ByText(text); /// Finds widgets by [key]. Only [String] and [int] values can be used. diff --git a/packages/flutter_test/lib/src/goldens.dart b/packages/flutter_test/lib/src/goldens.dart index ff96a92bdc..053f0a5a01 100644 --- a/packages/flutter_test/lib/src/goldens.dart +++ b/packages/flutter_test/lib/src/goldens.dart @@ -139,7 +139,7 @@ set goldenFileComparator(GoldenFileComparator value) { /// fake async constraints that are normally imposed on widget tests (i.e. the /// need or the ability to call [WidgetTester.pump] to advance the microtask /// queue). Prior to the invocation, the test framework will render only the -/// [Element] to be compared on the screen. +/// [widgets.Element] to be compared on the screen. /// /// See also: ///