squash (#85484)
This commit is contained in:
@@ -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<String, WidgetBuilder>? routes;
|
||||
|
||||
@@ -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.
|
||||
///
|
||||
|
||||
@@ -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<String, WidgetBuilder>? routes;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
///
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user