Unverified Commit 52e2ca38 authored by Janice Collins's avatar Janice Collins Committed by GitHub

squash (#85484)

parent b0bd7cf1
...@@ -242,8 +242,9 @@ class CupertinoApp extends StatefulWidget { ...@@ -242,8 +242,9 @@ class CupertinoApp extends StatefulWidget {
/// ///
/// When a named route is pushed with [Navigator.pushNamed], the route name is /// 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 /// looked up in this map. If the name is present, the associated
/// [WidgetBuilder] is used to construct a [CupertinoPageRoute] that performs /// [widgets.WidgetBuilder] is used to construct a [CupertinoPageRoute] that
/// an appropriate transition, including [Hero] animations, to the new route. /// performs an appropriate transition, including [Hero] animations, to the
/// new route.
/// ///
/// {@macro flutter.widgets.widgetsApp.routes} /// {@macro flutter.widgets.widgetsApp.routes}
final Map<String, WidgetBuilder>? routes; final Map<String, WidgetBuilder>? routes;
......
...@@ -89,8 +89,9 @@ class CupertinoTabView extends StatefulWidget { ...@@ -89,8 +89,9 @@ class CupertinoTabView extends StatefulWidget {
/// ///
/// When a named route is pushed with [Navigator.pushNamed] inside this tab view, /// 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 route name is looked up in this map. If the name is present,
/// the associated [WidgetBuilder] is used to construct a [CupertinoPageRoute] /// the associated [widgets.WidgetBuilder] is used to construct a
/// that performs an appropriate transition to the new route. /// [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. /// If the tab view only has one page, then you can specify it using [builder] instead.
/// ///
......
...@@ -284,8 +284,9 @@ class MaterialApp extends StatefulWidget { ...@@ -284,8 +284,9 @@ class MaterialApp extends StatefulWidget {
/// ///
/// When a named route is pushed with [Navigator.pushNamed], the route name is /// 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 /// looked up in this map. If the name is present, the associated
/// [WidgetBuilder] is used to construct a [MaterialPageRoute] that performs /// [widgets.WidgetBuilder] is used to construct a [MaterialPageRoute] that
/// an appropriate transition, including [Hero] animations, to the new route. /// performs an appropriate transition, including [Hero] animations, to the
/// new route.
/// ///
/// {@macro flutter.widgets.widgetsApp.routes} /// {@macro flutter.widgets.widgetsApp.routes}
final Map<String, WidgetBuilder>? routes; final Map<String, WidgetBuilder>? routes;
......
...@@ -3289,8 +3289,9 @@ class SemanticsConfiguration { ...@@ -3289,8 +3289,9 @@ class SemanticsConfiguration {
/// This is a request to increase the value represented by the widget. For /// This is a request to increase the value represented by the widget. For
/// example, this action might be recognized by a slider control. /// example, this action might be recognized by a slider control.
/// ///
/// If a [value] is set, [increasedValue] must also be provided and /// If [this.value] is set, [increasedValue] must also be provided and
/// [onIncrease] must ensure that [value] will be set to [increasedValue]. /// [onIncrease] must ensure that [this.value] will be set to
/// [increasedValue].
/// ///
/// VoiceOver users on iOS can trigger this action by swiping up with one /// 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 /// finger. TalkBack users on Android can trigger this action by pressing the
...@@ -3307,8 +3308,9 @@ class SemanticsConfiguration { ...@@ -3307,8 +3308,9 @@ class SemanticsConfiguration {
/// This is a request to decrease the value represented by the widget. For /// This is a request to decrease the value represented by the widget. For
/// example, this action might be recognized by a slider control. /// example, this action might be recognized by a slider control.
/// ///
/// If a [value] is set, [decreasedValue] must also be provided and /// If [this.value] is set, [decreasedValue] must also be provided and
/// [onDecrease] must ensure that [value] will be set to [decreasedValue]. /// [onDecrease] must ensure that [this.value] will be set to
/// [decreasedValue].
/// ///
/// VoiceOver users on iOS can trigger this action by swiping down with one /// 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 /// finger. TalkBack users on Android can trigger this action by pressing the
...@@ -4102,11 +4104,11 @@ class SemanticsConfiguration { ...@@ -4102,11 +4104,11 @@ class SemanticsConfiguration {
_setFlag(SemanticsFlag.isReadOnly, value); _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 /// This option is usually set in combination with [isTextField] to indicate
/// that the text field contains a password (or other sensitive information). /// 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); bool get isObscured => _hasFlag(SemanticsFlag.isObscured);
set isObscured(bool value) { set isObscured(bool value) {
_setFlag(SemanticsFlag.isObscured, value); _setFlag(SemanticsFlag.isObscured, value);
...@@ -4133,8 +4135,8 @@ class SemanticsConfiguration { ...@@ -4133,8 +4135,8 @@ class SemanticsConfiguration {
_setFlag(SemanticsFlag.hasImplicitScrolling, value); _setFlag(SemanticsFlag.hasImplicitScrolling, value);
} }
/// The currently selected text (or the position of the cursor) within [value] /// The currently selected text (or the position of the cursor) within
/// if this node represents a text field. /// [this.value] if this node represents a text field.
TextSelection? get textSelection => _textSelection; TextSelection? get textSelection => _textSelection;
TextSelection? _textSelection; TextSelection? _textSelection;
set textSelection(TextSelection? value) { set textSelection(TextSelection? value) {
......
...@@ -610,7 +610,7 @@ class WidgetsApp extends StatefulWidget { ...@@ -610,7 +610,7 @@ class WidgetsApp extends StatefulWidget {
/// ///
/// When a named route is pushed with [Navigator.pushNamed], the route name is /// 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 /// 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] /// [pageRouteBuilder] to perform an appropriate transition, including [Hero]
/// animations, to the new route. /// animations, to the new route.
/// ///
......
...@@ -178,13 +178,14 @@ class BySemanticsLabel extends SerializableFinder { ...@@ -178,13 +178,14 @@ class BySemanticsLabel extends SerializableFinder {
} }
} }
/// A Flutter Driver finder that finds widgets by [text] inside a [Text] or /// A Flutter Driver finder that finds widgets by [text] inside a
/// [EditableText] widget. /// [widgets.Text] or [widgets.EditableText] widget.
class ByText extends SerializableFinder { class ByText extends SerializableFinder {
/// Creates a text finder given the text. /// Creates a text finder given the text.
const ByText(this.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; final String text;
@override @override
......
...@@ -742,7 +742,8 @@ abstract class FlutterDriver { ...@@ -742,7 +742,8 @@ abstract class FlutterDriver {
class CommonFinders { class CommonFinders {
const 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); SerializableFinder text(String text) => ByText(text);
/// Finds widgets by [key]. Only [String] and [int] values can be used. /// Finds widgets by [key]. Only [String] and [int] values can be used.
......
...@@ -139,7 +139,7 @@ set goldenFileComparator(GoldenFileComparator value) { ...@@ -139,7 +139,7 @@ set goldenFileComparator(GoldenFileComparator value) {
/// fake async constraints that are normally imposed on widget tests (i.e. the /// 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 /// need or the ability to call [WidgetTester.pump] to advance the microtask
/// queue). Prior to the invocation, the test framework will render only the /// 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: /// See also:
/// ///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment