Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e0956cbd
Commit
e0956cbd
authored
Feb 28, 2018
by
najeira
Committed by
xster
Feb 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove "the" duplications (#14952)
parent
614df694
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
24 additions
and
24 deletions
+24
-24
home.dart
examples/flutter_gallery/lib/demo/animation/home.dart
+1
-1
velocity_tracker.dart
packages/flutter/lib/src/gestures/velocity_tracker.dart
+1
-1
app_bar.dart
packages/flutter/lib/src/material/app_bar.dart
+2
-2
button.dart
packages/flutter/lib/src/material/button.dart
+1
-1
tabs.dart
packages/flutter/lib/src/material/tabs.dart
+2
-2
borders.dart
packages/flutter/lib/src/painting/borders.dart
+2
-2
flex.dart
packages/flutter/lib/src/rendering/flex.dart
+1
-1
object.dart
packages/flutter/lib/src/rendering/object.dart
+1
-1
table_border.dart
packages/flutter/lib/src/rendering/table_border.dart
+1
-1
text_editing.dart
packages/flutter/lib/src/services/text_editing.dart
+1
-1
app.dart
packages/flutter/lib/src/widgets/app.dart
+1
-1
dismissible.dart
packages/flutter/lib/src/widgets/dismissible.dart
+1
-1
page_storage.dart
packages/flutter/lib/src/widgets/page_storage.dart
+1
-1
scroll_physics.dart
packages/flutter/lib/src/widgets/scroll_physics.dart
+2
-2
text_selection.dart
packages/flutter/lib/src/widgets/text_selection.dart
+1
-1
widget_inspector.dart
packages/flutter/lib/src/widgets/widget_inspector.dart
+1
-1
app_bar_test.dart
packages/flutter/test/material/app_bar_test.dart
+1
-1
modal_bottom_sheet_test.dart
packages/flutter/test/material/modal_bottom_sheet_test.dart
+2
-2
custom_painter_test.dart
packages/flutter/test/widgets/custom_painter_test.dart
+1
-1
No files found.
examples/flutter_gallery/lib/demo/animation/home.dart
View file @
e0956cbd
...
...
@@ -407,7 +407,7 @@ class _SnappingScrollPhysics extends ClampingScrollPhysics {
return
_toZeroScrollOffsetSimulation
(
offset
,
dragVelocity
);
}
else
{
// 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,
// otherwise snap to zero.
final
double
snapThreshold
=
midScrollOffset
/
2.0
;
...
...
packages/flutter/lib/src/gestures/velocity_tracker.dart
View file @
e0956cbd
...
...
@@ -79,7 +79,7 @@ class Velocity {
/// A two dimensional velocity estimate.
///
/// 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
/// first and last position sample used to compute the velocity, and [offset]
/// is similarly the difference between the first and last positions.
...
...
packages/flutter/lib/src/material/app_bar.dart
View file @
e0956cbd
...
...
@@ -209,7 +209,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
final
List
<
Widget
>
actions
;
/// 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
/// changes the [AppBar]'s size. A [SliverAppBar] in a [CustomScrollView]
...
...
@@ -795,7 +795,7 @@ class SliverAppBar extends StatefulWidget {
final
List
<
Widget
>
actions
;
/// 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.
final
Widget
flexibleSpace
;
...
...
packages/flutter/lib/src/material/button.dart
View file @
e0956cbd
...
...
@@ -229,7 +229,7 @@ class MaterialButton extends StatelessWidget {
/// The color to use for this button's text.
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.
///
/// Defaults to null, meaning that the color is automatically derived from the [Theme].
...
...
packages/flutter/lib/src/material/tabs.dart
View file @
e0956cbd
...
...
@@ -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
// only compute the scroll position's initial scroll offset (the "correct"
// 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.
class
_TabBarScrollController
extends
ScrollController
{
_TabBarScrollController
(
this
.
tabBar
);
...
...
packages/flutter/lib/src/painting/borders.dart
View file @
e0956cbd
...
...
@@ -135,7 +135,7 @@ class BorderSide {
///
/// The `t` argument represents the multiplicand, or the position on the
/// 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
/// equivalent to `this`), and other values meaning that the object should be
/// 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
/// 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
/// equivalent to `this`), and other values meaning that the object should be
/// multiplied by `t`. Negative values are allowed but may be meaningless
...
...
packages/flutter/lib/src/rendering/flex.dart
View file @
e0956cbd
...
...
@@ -642,7 +642,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin<RenderBox, Fl
final
bool
canFlex
=
maxMainSize
<
double
.
INFINITY
;
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
lastFlexChild
;
while
(
child
!=
null
)
{
...
...
packages/flutter/lib/src/rendering/object.dart
View file @
e0956cbd
...
...
@@ -1854,7 +1854,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
/// Mark this render object as having changed its visual appearance.
///
/// 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
/// rendering pipeline will give this render object an opportunity to update
/// its display list.
...
...
packages/flutter/lib/src/rendering/table_border.dart
View file @
e0956cbd
...
...
@@ -120,7 +120,7 @@ class TableBorder {
///
/// The `t` argument represents the multiplicand, or the position on the
/// 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
/// equivalent to `this`), and other values meaning that the object should be
/// multiplied by `t`. Negative values are treated like zero.
...
...
packages/flutter/lib/src/services/text_editing.dart
View file @
e0956cbd
...
...
@@ -147,7 +147,7 @@ class TextSelection extends TextRange {
/// Might be larger than, smaller than, or equal to base.
final
int
extentOffset
;
/// If the t
he t
ext 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
/// painting the caret.
final
TextAffinity
affinity
;
...
...
packages/flutter/lib/src/widgets/app.dart
View file @
e0956cbd
...
...
@@ -344,7 +344,7 @@ class WidgetsApp extends StatefulWidget {
/// inspect modes.
///
/// 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.
final
InspectorSelectButtonBuilder
inspectorSelectButtonBuilder
;
...
...
packages/flutter/lib/src/widgets/dismissible.dart
View file @
e0956cbd
...
...
@@ -115,7 +115,7 @@ class Dismissible extends StatefulWidget {
/// 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
/// immediately after the
the
widget is dismissed.
/// immediately after the widget is dismissed.
final
Duration
resizeDuration
;
/// The offset threshold the item has to be dragged in order to be considered
...
...
packages/flutter/lib/src/widgets/page_storage.dart
View file @
e0956cbd
...
...
@@ -20,7 +20,7 @@ import 'framework.dart';
///
/// For example, to ensure that the scroll offsets for the scrollable within
/// 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.
///
/// ```dart
...
...
packages/flutter/lib/src/widgets/scroll_physics.dart
View file @
e0956cbd
...
...
@@ -241,7 +241,7 @@ class ScrollPhysics {
///
/// See also:
///
/// * [ScrollConfiguration], which uses this to provide the
the
default
/// * [ScrollConfiguration], which uses this to provide the default
/// scroll behavior on iOS.
/// * [ClampingScrollPhysics], which is the analogous physics for Android's
/// clamping behavior.
...
...
@@ -356,7 +356,7 @@ class BouncingScrollPhysics extends ScrollPhysics {
///
/// See also:
///
/// * [ScrollConfiguration], which uses this to provide the
the
default
/// * [ScrollConfiguration], which uses this to provide the default
/// scroll behavior on Android.
/// * [BouncingScrollPhysics], which is the analogous physics for iOS' bouncing
/// behavior.
...
...
packages/flutter/lib/src/widgets/text_selection.dart
View file @
e0956cbd
...
...
@@ -130,7 +130,7 @@ abstract class TextSelectionControls {
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
/// field.
///
...
...
packages/flutter/lib/src/widgets/widget_inspector.dart
View file @
e0956cbd
...
...
@@ -1061,7 +1061,7 @@ const TextStyle _messageStyle = const TextStyle(
/// constructor was called from.
///
/// 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
/// required as injecting creation locations requires a
/// [Dart Kernel Transformer](https://github.com/dart-lang/sdk/wiki/Kernel-Documentation).
...
...
packages/flutter/test/material/app_bar_test.dart
View file @
e0956cbd
...
...
@@ -700,7 +700,7 @@ void main() {
expect
(
appBarTop
(
tester
),
lessThanOrEqualTo
(-
128.0
));
// 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
));
await
gesture
.
moveBy
(
const
Offset
(
0.0
,
128.0
));
// drag the appbar all the way open
await
tester
.
pump
();
...
...
packages/flutter/test/material/modal_bottom_sheet_test.dart
View file @
e0956cbd
...
...
@@ -37,7 +37,7 @@ void main() {
expect
(
find
.
text
(
'BottomSheet'
),
findsOneWidget
);
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
.
pump
();
// bottom sheet dismiss animation starts
expect
(
showBottomSheetThenCalled
,
isTrue
);
...
...
@@ -58,7 +58,7 @@ void main() {
expect
(
find
.
text
(
'BottomSheet'
),
findsOneWidget
);
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
.
pump
();
// bottom sheet dismiss animation starts
expect
(
showBottomSheetThenCalled
,
isTrue
);
...
...
packages/flutter/test/widgets/custom_painter_test.dart
View file @
e0956cbd
...
...
@@ -597,7 +597,7 @@ class _DiffTester {
/// Creates an initial semantics list using the `from` list, then updates the
/// 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:
///
/// - checks that initial and final configurations are in the desired states.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment