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
0821b759
Unverified
Commit
0821b759
authored
Oct 15, 2019
by
Shi-Hao Hong
Committed by
GitHub
Oct 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo fixes (#42688)
parent
7f8e89b5
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
22 additions
and
22 deletions
+22
-22
text_field.dart
packages/flutter/lib/src/cupertino/text_field.dart
+1
-1
flat_button.dart
packages/flutter/lib/src/material/flat_button.dart
+1
-1
outline_button.dart
packages/flutter/lib/src/material/outline_button.dart
+1
-1
raised_button.dart
packages/flutter/lib/src/material/raised_button.dart
+1
-1
slider_theme.dart
packages/flutter/lib/src/material/slider_theme.dart
+9
-9
layer.dart
packages/flutter/lib/src/rendering/layer.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
color_scheme_test.dart
packages/flutter/test/material/color_scheme_test.dart
+2
-2
popup_menu_test.dart
packages/flutter/test/material/popup_menu_test.dart
+1
-1
range_slider_test.dart
packages/flutter/test/material/range_slider_test.dart
+3
-3
No files found.
packages/flutter/lib/src/cupertino/text_field.dart
View file @
0821b759
...
...
@@ -94,7 +94,7 @@ class _CupertinoTextFieldSelectionGestureDetectorBuilder extends TextSelectionGe
void
onSingleTapUp
(
TapUpDetails
details
)
{
// Because TextSelectionGestureDetector listens to taps that happen on
// widgets in front of it, tapping the clear button will also trigger
// this handler. If the
the
clear button widget recognizes the up event,
// this handler. If the clear button widget recognizes the up event,
// then do not handle it.
if
(
_state
.
_clearGlobalKey
.
currentContext
!=
null
)
{
final
RenderBox
renderBox
=
_state
.
_clearGlobalKey
.
currentContext
.
findRenderObject
();
...
...
packages/flutter/lib/src/material/flat_button.dart
View file @
0821b759
...
...
@@ -207,7 +207,7 @@ class FlatButton extends MaterialButton {
}
}
/// The type of
of
FlatButtons created with [FlatButton.icon].
/// The type of FlatButtons created with [FlatButton.icon].
///
/// This class only exists to give FlatButtons created with [FlatButton.icon]
/// a distinct class for the sake of [ButtonTheme]. It can not be instantiated.
...
...
packages/flutter/lib/src/material/outline_button.dart
View file @
0821b759
...
...
@@ -199,7 +199,7 @@ class OutlineButton extends MaterialButton {
}
}
// The type of
of
OutlineButtons created with OutlineButton.icon.
// The type of OutlineButtons created with OutlineButton.icon.
//
// This class only exists to give OutlineButtons created with OutlineButton.icon
// a distinct class for the sake of ButtonTheme. It can not be instantiated.
...
...
packages/flutter/lib/src/material/raised_button.dart
View file @
0821b759
...
...
@@ -244,7 +244,7 @@ class RaisedButton extends MaterialButton {
}
}
/// The type of
of
RaisedButtons created with [RaisedButton.icon].
/// The type of RaisedButtons created with [RaisedButton.icon].
///
/// This class only exists to give RaisedButtons created with [RaisedButton.icon]
/// a distinct class for the sake of [ButtonTheme]. It can not be instantiated.
...
...
packages/flutter/lib/src/material/slider_theme.dart
View file @
0821b759
...
...
@@ -65,7 +65,7 @@ import 'theme_data.dart';
/// {@endtemplate}
///
/// {@template flutter.material.slider.seeAlso.roundSliderTickMarkShape}
/// * [RoundSliderTickMarkShape], which is the
the
default [Slider]'s tick mark
/// * [RoundSliderTickMarkShape], which is the default [Slider]'s tick mark
/// shape that paints a solid circle.
/// {@endtemplate}
///
...
...
@@ -508,7 +508,7 @@ class SliderThemeData extends Diagnosticable {
///
/// See also:
///
/// * [RoundRangeSliderTickMarkShape], which is the
the
default tick mark
/// * [RoundRangeSliderTickMarkShape], which is the default tick mark
/// shape for the range slider.
final
SliderTickMarkShape
tickMarkShape
;
...
...
@@ -518,7 +518,7 @@ class SliderThemeData extends Diagnosticable {
///
/// See also:
///
/// * [RoundRangeSliderThumbShape], which is the
the
default thumb shape for
/// * [RoundRangeSliderThumbShape], which is the default thumb shape for
/// the [RangeSlider].
final
SliderComponentShape
thumbShape
;
...
...
@@ -533,7 +533,7 @@ class SliderThemeData extends Diagnosticable {
///
/// See also:
///
/// * [RoundedRectRangeSliderTrackShape], which is the
the
default track
/// * [RoundedRectRangeSliderTrackShape], which is the default track
/// shape for the [RangeSlider].
final
SliderTrackShape
trackShape
;
...
...
@@ -544,7 +544,7 @@ class SliderThemeData extends Diagnosticable {
///
/// See also:
///
/// * [PaddleRangeSliderValueIndicatorShape], which is the
the
default value
/// * [PaddleRangeSliderValueIndicatorShape], which is the default value
/// indicator shape for the [RangeSlider].
final
SliderComponentShape
valueIndicatorShape
;
...
...
@@ -558,7 +558,7 @@ class SliderThemeData extends Diagnosticable {
///
/// See also:
///
/// * [RoundSliderTickMarkShape], which is the
the
default tick mark shape
/// * [RoundSliderTickMarkShape], which is the default tick mark shape
/// for the [Slider].
final
RangeSliderTickMarkShape
rangeTickMarkShape
;
...
...
@@ -572,7 +572,7 @@ class SliderThemeData extends Diagnosticable {
///
/// See also:
///
/// * [RoundSliderThumbShape], which is the
the
default thumb shape for the
/// * [RoundSliderThumbShape], which is the default thumb shape for the
/// [Slider].
final
RangeSliderThumbShape
rangeThumbShape
;
...
...
@@ -587,7 +587,7 @@ class SliderThemeData extends Diagnosticable {
///
/// See also:
///
/// * [RoundedRectSliderTrackShape], which is the
the
default track
/// * [RoundedRectSliderTrackShape], which is the default track
/// shape for the [Slider].
final
RangeSliderTrackShape
rangeTrackShape
;
...
...
@@ -602,7 +602,7 @@ class SliderThemeData extends Diagnosticable {
///
/// See also:
///
/// * [PaddleSliderValueIndicatorShape], which is the
the
default value
/// * [PaddleSliderValueIndicatorShape], which is the default value
/// indicator shape for the [Slider].
final
RangeSliderValueIndicatorShape
rangeValueIndicatorShape
;
...
...
packages/flutter/lib/src/rendering/layer.dart
View file @
0821b759
...
...
@@ -2295,7 +2295,7 @@ class AnnotatedRegionLayer<T> extends ContainerLayer {
/// The [offset] defaults to [Offset.zero] if not provided, and is ignored if
/// [size] is not set.
///
/// The [offset] only offsets the
the
clipping rectagle, and does not affect
/// The [offset] only offsets the clipping rectagle, and does not affect
/// how the painting or annotation search is propagated to its children.
final
Offset
offset
;
...
...
packages/flutter/lib/src/widgets/widget_inspector.dart
View file @
0821b759
...
...
@@ -2112,7 +2112,7 @@ class _WidgetInspectorState extends State<WidgetInspector>
final
GlobalKey
_ignorePointerKey
=
GlobalKey
();
/// Distance from the edge of
of
the bounding box for an element to consider
/// Distance from the edge of the bounding box for an element to consider
/// as selecting the edge of the bounding box.
static
const
double
_edgeHitMargin
=
2.0
;
...
...
packages/flutter/test/material/app_bar_test.dart
View file @
0821b759
...
...
@@ -777,7 +777,7 @@ void main() {
expect
(
appBarHeight
(
tester
),
kTextTabBarHeight
);
// Drag the scrollable up and down. The app bar should not snap open, the
// botto
f
of the appbar should just track the drag offset.
// botto
m
of the appbar should just track the drag offset.
TestGesture
gesture
=
await
tester
.
startGesture
(
const
Offset
(
50.0
,
200.0
));
await
gesture
.
moveBy
(
const
Offset
(
0.0
,
100.0
));
await
tester
.
pump
();
...
...
packages/flutter/test/material/color_scheme_test.dart
View file @
0821b759
...
...
@@ -7,7 +7,7 @@ import 'package:flutter_test/flutter_test.dart';
void
main
(
)
{
test
(
'light scheme matches the spec'
,
()
{
// Colors should match the
The
Material Design baseline default theme:
// Colors should match the Material Design baseline default theme:
// https://material.io/design/color/dark-theme.html#ui-application
const
ColorScheme
scheme
=
ColorScheme
.
light
();
expect
(
scheme
.
primary
,
const
Color
(
0xff6200ee
));
...
...
@@ -26,7 +26,7 @@ void main() {
});
test
(
'dark scheme matches the spec'
,
()
{
// Colors should match the
The
Material Design baseline dark theme:
// Colors should match the Material Design baseline dark theme:
// https://material.io/design/color/dark-theme.html#ui-application
const
ColorScheme
scheme
=
ColorScheme
.
dark
();
expect
(
scheme
.
primary
,
const
Color
(
0xffbb86fc
));
...
...
packages/flutter/test/material/popup_menu_test.dart
View file @
0821b759
...
...
@@ -711,7 +711,7 @@ void main() {
onSelected:
(
String
result
)
{
},
itemBuilder:
(
BuildContext
context
)
{
return
<
PopupMenuEntry
<
String
>>[
// This menu item's height will be 48 because the
the
default minimum height
// This menu item's height will be 48 because the default minimum height
// is 48 and the height of the text is less than 48.
const
PopupMenuItem
<
String
>(
value:
'0'
,
...
...
packages/flutter/test/material/range_slider_test.dart
View file @
0821b759
...
...
@@ -1367,7 +1367,7 @@ void main() {
final
Offset
bottomRight
=
tester
.
getBottomRight
(
find
.
byType
(
RangeSlider
)).
translate
(-
24
,
0
);
final
Offset
middle
=
topLeft
+
bottomRight
/
2
;
// Drag the th
e th
umbs towards the center.
// Drag the thumbs towards the center.
final
Offset
leftTarget
=
topLeft
+
(
bottomRight
-
topLeft
)
*
0.3
;
await
tester
.
dragFrom
(
leftTarget
,
middle
-
leftTarget
);
await
tester
.
pumpAndSettle
();
...
...
@@ -1437,7 +1437,7 @@ void main() {
final
Offset
bottomRight
=
tester
.
getBottomRight
(
find
.
byType
(
RangeSlider
)).
translate
(-
24
,
0
);
final
Offset
middle
=
topLeft
+
bottomRight
/
2
;
// Drag the th
e th
umbs towards the center.
// Drag the thumbs towards the center.
final
Offset
leftTarget
=
topLeft
+
(
bottomRight
-
topLeft
)
*
0.3
;
await
tester
.
dragFrom
(
leftTarget
,
middle
-
leftTarget
);
await
tester
.
pumpAndSettle
();
...
...
@@ -1511,7 +1511,7 @@ void main() {
final
Offset
bottomRight
=
tester
.
getBottomRight
(
find
.
byType
(
RangeSlider
)).
translate
(-
24
,
0
);
final
Offset
middle
=
topLeft
+
bottomRight
/
2
;
// Drag the th
e th
umbs towards the center.
// Drag the thumbs towards the center.
final
Offset
leftTarget
=
topLeft
+
(
bottomRight
-
topLeft
)
*
0.3
;
await
tester
.
dragFrom
(
leftTarget
,
middle
-
leftTarget
);
await
tester
.
pumpAndSettle
();
...
...
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