mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
remove "the" duplications (#14952)
This commit is contained in:
parent
614df6949c
commit
e0956cbdb7
@ -407,7 +407,7 @@ class _SnappingScrollPhysics extends ClampingScrollPhysics {
|
|||||||
return _toZeroScrollOffsetSimulation(offset, dragVelocity);
|
return _toZeroScrollOffsetSimulation(offset, dragVelocity);
|
||||||
} else {
|
} else {
|
||||||
// The user ended the drag with little or no velocity. If they
|
// The user ended the drag with little or no velocity. If they
|
||||||
// didn't leave the the offset above midScrollOffset, then
|
// didn't leave the offset above midScrollOffset, then
|
||||||
// snap to midScrollOffset if they're more than halfway there,
|
// snap to midScrollOffset if they're more than halfway there,
|
||||||
// otherwise snap to zero.
|
// otherwise snap to zero.
|
||||||
final double snapThreshold = midScrollOffset / 2.0;
|
final double snapThreshold = midScrollOffset / 2.0;
|
||||||
|
@ -79,7 +79,7 @@ class Velocity {
|
|||||||
/// A two dimensional velocity estimate.
|
/// A two dimensional velocity estimate.
|
||||||
///
|
///
|
||||||
/// VelocityEstimates are computed by [VelocityTracker.getVelocityEstimate]. An
|
/// VelocityEstimates are computed by [VelocityTracker.getVelocityEstimate]. An
|
||||||
/// estimate's [confidence] measures how well the the velocity tracker's position
|
/// estimate's [confidence] measures how well the velocity tracker's position
|
||||||
/// data fit a straight line, [duration] is the time that elapsed between the
|
/// data fit a straight line, [duration] is the time that elapsed between the
|
||||||
/// first and last position sample used to compute the velocity, and [offset]
|
/// first and last position sample used to compute the velocity, and [offset]
|
||||||
/// is similarly the difference between the first and last positions.
|
/// is similarly the difference between the first and last positions.
|
||||||
|
@ -209,7 +209,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
|
|||||||
final List<Widget> actions;
|
final List<Widget> actions;
|
||||||
|
|
||||||
/// This widget is stacked behind the toolbar and the tabbar. It's height will
|
/// This widget is stacked behind the toolbar and the tabbar. It's height will
|
||||||
/// be the same as the the app bar's overall height.
|
/// be the same as the app bar's overall height.
|
||||||
///
|
///
|
||||||
/// A flexible space isn't actually flexible unless the [AppBar]'s container
|
/// A flexible space isn't actually flexible unless the [AppBar]'s container
|
||||||
/// changes the [AppBar]'s size. A [SliverAppBar] in a [CustomScrollView]
|
/// changes the [AppBar]'s size. A [SliverAppBar] in a [CustomScrollView]
|
||||||
@ -795,7 +795,7 @@ class SliverAppBar extends StatefulWidget {
|
|||||||
final List<Widget> actions;
|
final List<Widget> actions;
|
||||||
|
|
||||||
/// This widget is stacked behind the toolbar and the tabbar. It's height will
|
/// This widget is stacked behind the toolbar and the tabbar. It's height will
|
||||||
/// be the same as the the app bar's overall height.
|
/// be the same as the app bar's overall height.
|
||||||
///
|
///
|
||||||
/// Typically a [FlexibleSpaceBar]. See [FlexibleSpaceBar] for details.
|
/// Typically a [FlexibleSpaceBar]. See [FlexibleSpaceBar] for details.
|
||||||
final Widget flexibleSpace;
|
final Widget flexibleSpace;
|
||||||
|
@ -229,7 +229,7 @@ class MaterialButton extends StatelessWidget {
|
|||||||
/// The color to use for this button's text.
|
/// The color to use for this button's text.
|
||||||
final Color textColor;
|
final Color textColor;
|
||||||
|
|
||||||
/// The the button's fill color, displayed by its [Material], while the button
|
/// The button's fill color, displayed by its [Material], while the button
|
||||||
/// is in its default (unpressed, enabled) state.
|
/// is in its default (unpressed, enabled) state.
|
||||||
///
|
///
|
||||||
/// Defaults to null, meaning that the color is automatically derived from the [Theme].
|
/// Defaults to null, meaning that the color is automatically derived from the [Theme].
|
||||||
|
@ -446,7 +446,7 @@ class _DragAnimation extends Animation<double> with AnimationWithParentMixin<dou
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This class, and TabBarScrollController, only exist to handle the the case
|
// This class, and TabBarScrollController, only exist to handle the case
|
||||||
// where a scrollable TabBar has a non-zero initialIndex. In that case we can
|
// where a scrollable TabBar has a non-zero initialIndex. In that case we can
|
||||||
// only compute the scroll position's initial scroll offset (the "correct"
|
// only compute the scroll position's initial scroll offset (the "correct"
|
||||||
// pixels value) after the TabBar viewport width and scroll limits are known.
|
// pixels value) after the TabBar viewport width and scroll limits are known.
|
||||||
@ -476,7 +476,7 @@ class _TabBarScrollPosition extends ScrollPositionWithSingleContext {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This class, and TabBarScrollPosition, only exist to handle the the case
|
// This class, and TabBarScrollPosition, only exist to handle the case
|
||||||
// where a scrollable TabBar has a non-zero initialIndex.
|
// where a scrollable TabBar has a non-zero initialIndex.
|
||||||
class _TabBarScrollController extends ScrollController {
|
class _TabBarScrollController extends ScrollController {
|
||||||
_TabBarScrollController(this.tabBar);
|
_TabBarScrollController(this.tabBar);
|
||||||
|
@ -135,7 +135,7 @@ class BorderSide {
|
|||||||
///
|
///
|
||||||
/// The `t` argument represents the multiplicand, or the position on the
|
/// The `t` argument represents the multiplicand, or the position on the
|
||||||
/// timeline for an interpolation from nothing to `this`, with 0.0 meaning
|
/// timeline for an interpolation from nothing to `this`, with 0.0 meaning
|
||||||
/// that the the object returned should be the nil variant of this object, 1.0
|
/// that the object returned should be the nil variant of this object, 1.0
|
||||||
/// meaning that no change should be applied, returning `this` (or something
|
/// meaning that no change should be applied, returning `this` (or something
|
||||||
/// equivalent to `this`), and other values meaning that the object should be
|
/// equivalent to `this`), and other values meaning that the object should be
|
||||||
/// multiplied by `t`. Negative values are treated like zero.
|
/// multiplied by `t`. Negative values are treated like zero.
|
||||||
@ -328,7 +328,7 @@ abstract class ShapeBorder {
|
|||||||
///
|
///
|
||||||
/// The `t` argument represents the multiplicand, or the position on the
|
/// The `t` argument represents the multiplicand, or the position on the
|
||||||
/// timeline for an interpolation from nothing to `this`, with 0.0 meaning
|
/// timeline for an interpolation from nothing to `this`, with 0.0 meaning
|
||||||
/// that the the object returned should be the nil variant of this object, 1.0
|
/// that the object returned should be the nil variant of this object, 1.0
|
||||||
/// meaning that no change should be applied, returning `this` (or something
|
/// meaning that no change should be applied, returning `this` (or something
|
||||||
/// equivalent to `this`), and other values meaning that the object should be
|
/// equivalent to `this`), and other values meaning that the object should be
|
||||||
/// multiplied by `t`. Negative values are allowed but may be meaningless
|
/// multiplied by `t`. Negative values are allowed but may be meaningless
|
||||||
|
@ -642,7 +642,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin<RenderBox, Fl
|
|||||||
final bool canFlex = maxMainSize < double.INFINITY;
|
final bool canFlex = maxMainSize < double.INFINITY;
|
||||||
|
|
||||||
double crossSize = 0.0;
|
double crossSize = 0.0;
|
||||||
double allocatedSize = 0.0; // Sum of the sizes of the the non-flexible children.
|
double allocatedSize = 0.0; // Sum of the sizes of the non-flexible children.
|
||||||
RenderBox child = firstChild;
|
RenderBox child = firstChild;
|
||||||
RenderBox lastFlexChild;
|
RenderBox lastFlexChild;
|
||||||
while (child != null) {
|
while (child != null) {
|
||||||
|
@ -1854,7 +1854,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
|
|||||||
/// Mark this render object as having changed its visual appearance.
|
/// Mark this render object as having changed its visual appearance.
|
||||||
///
|
///
|
||||||
/// Rather than eagerly updating this render object's display list
|
/// Rather than eagerly updating this render object's display list
|
||||||
/// in response to writes, we instead mark the the render object as needing to
|
/// in response to writes, we instead mark the render object as needing to
|
||||||
/// paint, which schedules a visual update. As part of the visual update, the
|
/// paint, which schedules a visual update. As part of the visual update, the
|
||||||
/// rendering pipeline will give this render object an opportunity to update
|
/// rendering pipeline will give this render object an opportunity to update
|
||||||
/// its display list.
|
/// its display list.
|
||||||
|
@ -120,7 +120,7 @@ class TableBorder {
|
|||||||
///
|
///
|
||||||
/// The `t` argument represents the multiplicand, or the position on the
|
/// The `t` argument represents the multiplicand, or the position on the
|
||||||
/// timeline for an interpolation from nothing to `this`, with 0.0 meaning
|
/// timeline for an interpolation from nothing to `this`, with 0.0 meaning
|
||||||
/// that the the object returned should be the nil variant of this object, 1.0
|
/// that the object returned should be the nil variant of this object, 1.0
|
||||||
/// meaning that no change should be applied, returning `this` (or something
|
/// meaning that no change should be applied, returning `this` (or something
|
||||||
/// equivalent to `this`), and other values meaning that the object should be
|
/// equivalent to `this`), and other values meaning that the object should be
|
||||||
/// multiplied by `t`. Negative values are treated like zero.
|
/// multiplied by `t`. Negative values are treated like zero.
|
||||||
|
@ -147,7 +147,7 @@ class TextSelection extends TextRange {
|
|||||||
/// Might be larger than, smaller than, or equal to base.
|
/// Might be larger than, smaller than, or equal to base.
|
||||||
final int extentOffset;
|
final int extentOffset;
|
||||||
|
|
||||||
/// If the the text range is collapsed and has more than one visual location
|
/// If the text range is collapsed and has more than one visual location
|
||||||
/// (e.g., occurs at a line break), which of the two locations to use when
|
/// (e.g., occurs at a line break), which of the two locations to use when
|
||||||
/// painting the caret.
|
/// painting the caret.
|
||||||
final TextAffinity affinity;
|
final TextAffinity affinity;
|
||||||
|
@ -344,7 +344,7 @@ class WidgetsApp extends StatefulWidget {
|
|||||||
/// inspect modes.
|
/// inspect modes.
|
||||||
///
|
///
|
||||||
/// This lets [MaterialApp] to use a material button to toggle the inspector
|
/// This lets [MaterialApp] to use a material button to toggle the inspector
|
||||||
/// select mode without requiring [WidgetInspector] to depend on the the
|
/// select mode without requiring [WidgetInspector] to depend on the
|
||||||
/// material package.
|
/// material package.
|
||||||
final InspectorSelectButtonBuilder inspectorSelectButtonBuilder;
|
final InspectorSelectButtonBuilder inspectorSelectButtonBuilder;
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ class Dismissible extends StatefulWidget {
|
|||||||
/// The amount of time the widget will spend contracting before [onDismissed] is called.
|
/// The amount of time the widget will spend contracting before [onDismissed] is called.
|
||||||
///
|
///
|
||||||
/// If null, the widget will not contract and [onDismissed] will be called
|
/// If null, the widget will not contract and [onDismissed] will be called
|
||||||
/// immediately after the the widget is dismissed.
|
/// immediately after the widget is dismissed.
|
||||||
final Duration resizeDuration;
|
final Duration resizeDuration;
|
||||||
|
|
||||||
/// The offset threshold the item has to be dragged in order to be considered
|
/// The offset threshold the item has to be dragged in order to be considered
|
||||||
|
@ -20,7 +20,7 @@ import 'framework.dart';
|
|||||||
///
|
///
|
||||||
/// For example, to ensure that the scroll offsets for the scrollable within
|
/// For example, to ensure that the scroll offsets for the scrollable within
|
||||||
/// each `MyScrollableTabView` below are restored when the [TabBarView]
|
/// each `MyScrollableTabView` below are restored when the [TabBarView]
|
||||||
/// is recreated, we've specified [PageStorageKey]s whose values are the the
|
/// is recreated, we've specified [PageStorageKey]s whose values are the
|
||||||
/// tabs' string labels.
|
/// tabs' string labels.
|
||||||
///
|
///
|
||||||
/// ```dart
|
/// ```dart
|
||||||
|
@ -241,7 +241,7 @@ class ScrollPhysics {
|
|||||||
///
|
///
|
||||||
/// See also:
|
/// See also:
|
||||||
///
|
///
|
||||||
/// * [ScrollConfiguration], which uses this to provide the the default
|
/// * [ScrollConfiguration], which uses this to provide the default
|
||||||
/// scroll behavior on iOS.
|
/// scroll behavior on iOS.
|
||||||
/// * [ClampingScrollPhysics], which is the analogous physics for Android's
|
/// * [ClampingScrollPhysics], which is the analogous physics for Android's
|
||||||
/// clamping behavior.
|
/// clamping behavior.
|
||||||
@ -356,7 +356,7 @@ class BouncingScrollPhysics extends ScrollPhysics {
|
|||||||
///
|
///
|
||||||
/// See also:
|
/// See also:
|
||||||
///
|
///
|
||||||
/// * [ScrollConfiguration], which uses this to provide the the default
|
/// * [ScrollConfiguration], which uses this to provide the default
|
||||||
/// scroll behavior on Android.
|
/// scroll behavior on Android.
|
||||||
/// * [BouncingScrollPhysics], which is the analogous physics for iOS' bouncing
|
/// * [BouncingScrollPhysics], which is the analogous physics for iOS' bouncing
|
||||||
/// behavior.
|
/// behavior.
|
||||||
|
@ -130,7 +130,7 @@ abstract class TextSelectionControls {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Whether the the current selection of the text field managed by the given
|
/// Whether the current selection of the text field managed by the given
|
||||||
/// `delegate` can be extended to include the entire content of the text
|
/// `delegate` can be extended to include the entire content of the text
|
||||||
/// field.
|
/// field.
|
||||||
///
|
///
|
||||||
|
@ -1061,7 +1061,7 @@ const TextStyle _messageStyle = const TextStyle(
|
|||||||
/// constructor was called from.
|
/// constructor was called from.
|
||||||
///
|
///
|
||||||
/// A [Dart Kernel Transformer](https://github.com/dart-lang/sdk/wiki/Kernel-Documentation).
|
/// A [Dart Kernel Transformer](https://github.com/dart-lang/sdk/wiki/Kernel-Documentation).
|
||||||
/// adds this interface to the [Widget] class when the the
|
/// adds this interface to the [Widget] class when the
|
||||||
/// `--track-widget-creation` flag is passed to `flutter_tool`. Dart 2.0 is
|
/// `--track-widget-creation` flag is passed to `flutter_tool`. Dart 2.0 is
|
||||||
/// required as injecting creation locations requires a
|
/// required as injecting creation locations requires a
|
||||||
/// [Dart Kernel Transformer](https://github.com/dart-lang/sdk/wiki/Kernel-Documentation).
|
/// [Dart Kernel Transformer](https://github.com/dart-lang/sdk/wiki/Kernel-Documentation).
|
||||||
|
@ -700,7 +700,7 @@ void main() {
|
|||||||
expect(appBarTop(tester), lessThanOrEqualTo(-128.0));
|
expect(appBarTop(tester), lessThanOrEqualTo(-128.0));
|
||||||
|
|
||||||
// Drag the scrollable up and down. The app bar should not snap open, its
|
// Drag the scrollable up and down. The app bar should not snap open, its
|
||||||
// height should just track the the drag offset.
|
// height should just track the drag offset.
|
||||||
TestGesture gesture = await tester.startGesture(const Offset(50.0, 256.0));
|
TestGesture gesture = await tester.startGesture(const Offset(50.0, 256.0));
|
||||||
await gesture.moveBy(const Offset(0.0, 128.0)); // drag the appbar all the way open
|
await gesture.moveBy(const Offset(0.0, 128.0)); // drag the appbar all the way open
|
||||||
await tester.pump();
|
await tester.pump();
|
||||||
|
@ -37,7 +37,7 @@ void main() {
|
|||||||
expect(find.text('BottomSheet'), findsOneWidget);
|
expect(find.text('BottomSheet'), findsOneWidget);
|
||||||
expect(showBottomSheetThenCalled, isFalse);
|
expect(showBottomSheetThenCalled, isFalse);
|
||||||
|
|
||||||
// Tap on the the bottom sheet itself to dismiss it
|
// Tap on the bottom sheet itself to dismiss it
|
||||||
await tester.tap(find.text('BottomSheet'));
|
await tester.tap(find.text('BottomSheet'));
|
||||||
await tester.pump(); // bottom sheet dismiss animation starts
|
await tester.pump(); // bottom sheet dismiss animation starts
|
||||||
expect(showBottomSheetThenCalled, isTrue);
|
expect(showBottomSheetThenCalled, isTrue);
|
||||||
@ -58,7 +58,7 @@ void main() {
|
|||||||
expect(find.text('BottomSheet'), findsOneWidget);
|
expect(find.text('BottomSheet'), findsOneWidget);
|
||||||
expect(showBottomSheetThenCalled, isFalse);
|
expect(showBottomSheetThenCalled, isFalse);
|
||||||
|
|
||||||
// Tap above the the bottom sheet to dismiss it
|
// Tap above the bottom sheet to dismiss it
|
||||||
await tester.tapAt(const Offset(20.0, 20.0));
|
await tester.tapAt(const Offset(20.0, 20.0));
|
||||||
await tester.pump(); // bottom sheet dismiss animation starts
|
await tester.pump(); // bottom sheet dismiss animation starts
|
||||||
expect(showBottomSheetThenCalled, isTrue);
|
expect(showBottomSheetThenCalled, isTrue);
|
||||||
|
@ -597,7 +597,7 @@ class _DiffTester {
|
|||||||
|
|
||||||
/// Creates an initial semantics list using the `from` list, then updates the
|
/// Creates an initial semantics list using the `from` list, then updates the
|
||||||
/// list to the `to` list. This causes [RenderCustomPaint] to diff the two
|
/// list to the `to` list. This causes [RenderCustomPaint] to diff the two
|
||||||
/// lists and apply the changes. This method asserts the the changes were
|
/// lists and apply the changes. This method asserts the changes were
|
||||||
/// applied correctly, specifically:
|
/// applied correctly, specifically:
|
||||||
///
|
///
|
||||||
/// - checks that initial and final configurations are in the desired states.
|
/// - checks that initial and final configurations are in the desired states.
|
||||||
|
Loading…
Reference in New Issue
Block a user