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
827cbc35
Unverified
Commit
827cbc35
authored
Sep 17, 2020
by
Matěj Žídek
Committed by
GitHub
Sep 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor docs updates (#64966)
parent
bc11c2a8
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
28 additions
and
20 deletions
+28
-20
route.dart
packages/flutter/lib/src/cupertino/route.dart
+1
-1
slider.dart
packages/flutter/lib/src/cupertino/slider.dart
+2
-0
tab_scaffold.dart
packages/flutter/lib/src/cupertino/tab_scaffold.dart
+1
-1
text_field.dart
packages/flutter/lib/src/cupertino/text_field.dart
+2
-1
assertions.dart
packages/flutter/lib/src/foundation/assertions.dart
+5
-5
diagnostics.dart
packages/flutter/lib/src/foundation/diagnostics.dart
+2
-1
long_press.dart
packages/flutter/lib/src/gestures/long_press.dart
+1
-1
material_state.dart
packages/flutter/lib/src/material/material_state.dart
+2
-2
page_transitions_theme.dart
...ages/flutter/lib/src/material/page_transitions_theme.dart
+1
-1
range_slider.dart
packages/flutter/lib/src/material/range_slider.dart
+2
-0
slider.dart
packages/flutter/lib/src/material/slider.dart
+2
-0
error.dart
packages/flutter/lib/src/rendering/error.dart
+1
-1
object.dart
packages/flutter/lib/src/rendering/object.dart
+2
-2
text_formatter.dart
packages/flutter/lib/src/services/text_formatter.dart
+1
-1
editable_text.dart
packages/flutter/lib/src/widgets/editable_text.dart
+1
-1
scroll_physics.dart
packages/flutter/lib/src/widgets/scroll_physics.dart
+1
-1
page_selector_test.dart
packages/flutter/test/material/page_selector_test.dart
+1
-1
No files found.
packages/flutter/lib/src/cupertino/route.dart
View file @
827cbc35
...
@@ -91,7 +91,7 @@ final DecorationTween _kGradientShadowTween = DecorationTween(
...
@@ -91,7 +91,7 @@ final DecorationTween _kGradientShadowTween = DecorationTween(
/// See also:
/// See also:
///
///
/// * [MaterialRouteTransitionMixin], which is a mixin that provides
/// * [MaterialRouteTransitionMixin], which is a mixin that provides
/// platform-appropriate transitions for a [PageRoute]
/// platform-appropriate transitions for a [PageRoute]
.
/// * [CupertinoPageRoute], which is a [PageRoute] that leverages this mixin.
/// * [CupertinoPageRoute], which is a [PageRoute] that leverages this mixin.
mixin
CupertinoRouteTransitionMixin
<
T
>
on
PageRoute
<
T
>
{
mixin
CupertinoRouteTransitionMixin
<
T
>
on
PageRoute
<
T
>
{
/// Builds the primary contents of the route.
/// Builds the primary contents of the route.
...
...
packages/flutter/lib/src/cupertino/slider.dart
View file @
827cbc35
...
@@ -21,6 +21,8 @@ import 'thumb_painter.dart';
...
@@ -21,6 +21,8 @@ import 'thumb_painter.dart';
/// An iOS-style slider.
/// An iOS-style slider.
///
///
/// {@youtube 560 315 https://www.youtube.com/watch?v=ufb4gIPDmEs}
///
/// Used to select from a range of values.
/// Used to select from a range of values.
///
///
/// A slider can be used to select from either a continuous or a discrete set of
/// A slider can be used to select from either a continuous or a discrete set of
...
...
packages/flutter/lib/src/cupertino/tab_scaffold.dart
View file @
827cbc35
...
@@ -195,7 +195,7 @@ class CupertinoTabController extends ChangeNotifier {
...
@@ -195,7 +195,7 @@ class CupertinoTabController extends ChangeNotifier {
/// See also:
/// See also:
///
///
/// * [CupertinoTabBar], the bottom tab bar inserted in the scaffold.
/// * [CupertinoTabBar], the bottom tab bar inserted in the scaffold.
/// * [CupertinoTabController], the selection state of this widget
/// * [CupertinoTabController], the selection state of this widget
.
/// * [CupertinoTabView], the typical root content of each tab that holds its own
/// * [CupertinoTabView], the typical root content of each tab that holds its own
/// [Navigator] stack.
/// [Navigator] stack.
/// * [CupertinoPageRoute], a route hosting modal pages with iOS style transitions.
/// * [CupertinoPageRoute], a route hosting modal pages with iOS style transitions.
...
...
packages/flutter/lib/src/cupertino/text_field.dart
View file @
827cbc35
...
@@ -212,7 +212,8 @@ class CupertinoTextField extends StatefulWidget {
...
@@ -212,7 +212,8 @@ class CupertinoTextField extends StatefulWidget {
///
///
/// See also:
/// See also:
///
///
/// * [minLines]
/// * [minLines], which is the minimum number of lines to occupy when the
/// content spans fewer lines.
/// * [expands], to allow the widget to size itself to its parent's height.
/// * [expands], to allow the widget to size itself to its parent's height.
/// * [maxLength], which discusses the precise meaning of "number of
/// * [maxLength], which discusses the precise meaning of "number of
/// characters" and how it may differ from the intuitive meaning.
/// characters" and how it may differ from the intuitive meaning.
...
...
packages/flutter/lib/src/foundation/assertions.dart
View file @
827cbc35
...
@@ -378,7 +378,7 @@ class ErrorSpacer extends DiagnosticsProperty<void> {
...
@@ -378,7 +378,7 @@ class ErrorSpacer extends DiagnosticsProperty<void> {
/// See also:
/// See also:
///
///
/// * [FlutterError.onError], which is called whenever the Flutter framework
/// * [FlutterError.onError], which is called whenever the Flutter framework
/// catches an error
/// catches an error
.
class
FlutterErrorDetails
with
Diagnosticable
{
class
FlutterErrorDetails
with
Diagnosticable
{
/// Creates a [FlutterErrorDetails] object with the given arguments setting
/// Creates a [FlutterErrorDetails] object with the given arguments setting
/// the object's properties.
/// the object's properties.
...
@@ -893,10 +893,10 @@ class FlutterError extends Error with DiagnosticableTreeMixin implements Asserti
...
@@ -893,10 +893,10 @@ class FlutterError extends Error with DiagnosticableTreeMixin implements Asserti
/// ```dart
/// ```dart
/// FlutterError.demangleStackTrace = (StackTrace stackTrace) {
/// FlutterError.demangleStackTrace = (StackTrace stackTrace) {
/// if (stack is stack_trace.Trace)
/// if (stack is stack_trace.Trace)
//
return stack.vmTrace;
//
/
return stack.vmTrace;
//
if (stack is stack_trace.Chain)
//
/
if (stack is stack_trace.Chain)
//
return stack.toTrace().vmTrace;
//
/
return stack.toTrace().vmTrace;
//
return stack;
//
/
return stack;
/// };
/// };
/// ```
/// ```
static
StackTraceDemangler
demangleStackTrace
=
(
StackTrace
stackTrace
)
=>
stackTrace
;
static
StackTraceDemangler
demangleStackTrace
=
(
StackTrace
stackTrace
)
=>
stackTrace
;
...
...
packages/flutter/lib/src/foundation/diagnostics.dart
View file @
827cbc35
...
@@ -1542,7 +1542,8 @@ abstract class DiagnosticsNode {
...
@@ -1542,7 +1542,8 @@ abstract class DiagnosticsNode {
///
///
/// See also:
/// See also:
///
///
/// * [getProperties]
/// * [getProperties], which returns the properties of the [DiagnosticsNode]
/// object.
List
<
DiagnosticsNode
>
getChildren
();
List
<
DiagnosticsNode
>
getChildren
();
String
get
_separator
=>
showSeparator
?
':'
:
''
;
String
get
_separator
=>
showSeparator
?
':'
:
''
;
...
...
packages/flutter/lib/src/gestures/long_press.dart
View file @
827cbc35
...
@@ -109,7 +109,7 @@ class LongPressMoveUpdateDetails {
...
@@ -109,7 +109,7 @@ class LongPressMoveUpdateDetails {
/// See also:
/// See also:
///
///
/// * [LongPressGestureRecognizer.onLongPressEnd], which uses [GestureLongPressEndCallback].
/// * [LongPressGestureRecognizer.onLongPressEnd], which uses [GestureLongPressEndCallback].
/// * [LongPressMoveUpdateDetails], the details for [GestureLongPressMoveUpdateCallback]
/// * [LongPressMoveUpdateDetails], the details for [GestureLongPressMoveUpdateCallback]
.
/// * [LongPressStartDetails], the details for [GestureLongPressStartCallback].
/// * [LongPressStartDetails], the details for [GestureLongPressStartCallback].
class
LongPressEndDetails
{
class
LongPressEndDetails
{
/// Creates the details for a [GestureLongPressEndCallback].
/// Creates the details for a [GestureLongPressEndCallback].
...
...
packages/flutter/lib/src/material/material_state.dart
View file @
827cbc35
...
@@ -23,7 +23,7 @@ import 'package:flutter/rendering.dart';
...
@@ -23,7 +23,7 @@ import 'package:flutter/rendering.dart';
/// * [MaterialStateColor], a [Color] that implements `MaterialStateProperty`
/// * [MaterialStateColor], a [Color] that implements `MaterialStateProperty`
/// which is used in APIs that need to accept either a [Color] or a
/// which is used in APIs that need to accept either a [Color] or a
/// `MaterialStateProperty<Color>`.
/// `MaterialStateProperty<Color>`.
/// * [MaterialStateMouseCursor], a [MouseCursor] that implements `MaterialStateProperty`
.
/// * [MaterialStateMouseCursor], a [MouseCursor] that implements `MaterialStateProperty`
/// which is used in APIs that need to accept either a [MouseCursor] or a
/// which is used in APIs that need to accept either a [MouseCursor] or a
/// [MaterialStateProperty<MouseCursor>].
/// [MaterialStateProperty<MouseCursor>].
...
@@ -339,7 +339,7 @@ class _EnabledAndDisabledMouseCursor extends MaterialStateMouseCursor {
...
@@ -339,7 +339,7 @@ class _EnabledAndDisabledMouseCursor extends MaterialStateMouseCursor {
/// * [MaterialStateColor], a [Color] that implements `MaterialStateProperty`
/// * [MaterialStateColor], a [Color] that implements `MaterialStateProperty`
/// which is used in APIs that need to accept either a [Color] or a
/// which is used in APIs that need to accept either a [Color] or a
/// `MaterialStateProperty<Color>`.
/// `MaterialStateProperty<Color>`.
/// * [MaterialStateMouseCursor], a [MouseCursor] that implements `MaterialStateProperty`
.
/// * [MaterialStateMouseCursor], a [MouseCursor] that implements `MaterialStateProperty`
/// which is used in APIs that need to accept either a [MouseCursor] or a
/// which is used in APIs that need to accept either a [MouseCursor] or a
/// [MaterialStateProperty<MouseCursor>].
/// [MaterialStateProperty<MouseCursor>].
abstract
class
MaterialStateProperty
<
T
>
{
abstract
class
MaterialStateProperty
<
T
>
{
...
...
packages/flutter/lib/src/material/page_transitions_theme.dart
View file @
827cbc35
...
@@ -194,7 +194,7 @@ class _ZoomPageTransition extends StatelessWidget {
...
@@ -194,7 +194,7 @@ class _ZoomPageTransition extends StatelessWidget {
/// See also:
/// See also:
///
///
/// * [TransitionRoute.secondaryAnimation], which is the value given to this
/// * [TransitionRoute.secondaryAnimation], which is the value given to this
//
property when the [_ZoomPageTransition] is used as a page transition.
//
/
property when the [_ZoomPageTransition] is used as a page transition.
final
Animation
<
double
>
secondaryAnimation
;
final
Animation
<
double
>
secondaryAnimation
;
/// The widget below this widget in the tree.
/// The widget below this widget in the tree.
...
...
packages/flutter/lib/src/material/range_slider.dart
View file @
827cbc35
...
@@ -33,6 +33,8 @@ typedef PaintRangeValueIndicator = void Function(PaintingContext context, Offset
...
@@ -33,6 +33,8 @@ typedef PaintRangeValueIndicator = void Function(PaintingContext context, Offset
///
///
/// Used to select a range from a range of values.
/// Used to select a range from a range of values.
///
///
/// {@youtube 560 315 https://www.youtube.com/watch?v=ufb4gIPDmEs}
///
/// {@tool dartpad --template=stateful_widget_scaffold}
/// {@tool dartpad --template=stateful_widget_scaffold}
///
///
/// ![A range slider widget, consisting of 5 divisions and showing the default
/// ![A range slider widget, consisting of 5 divisions and showing the default
...
...
packages/flutter/lib/src/material/slider.dart
View file @
827cbc35
...
@@ -39,6 +39,8 @@ enum _SliderType { material, adaptive }
...
@@ -39,6 +39,8 @@ enum _SliderType { material, adaptive }
///
///
/// Used to select from a range of values.
/// Used to select from a range of values.
///
///
/// {@youtube 560 315 https://www.youtube.com/watch?v=ufb4gIPDmEs}
///
/// {@tool dartpad --template=stateful_widget_scaffold}
/// {@tool dartpad --template=stateful_widget_scaffold}
///
///
/// ![A slider widget, consisting of 5 divisions and showing the default value
/// ![A slider widget, consisting of 5 divisions and showing the default value
...
...
packages/flutter/lib/src/rendering/error.dart
View file @
827cbc35
...
@@ -91,7 +91,7 @@ class RenderErrorBox extends RenderBox {
...
@@ -91,7 +91,7 @@ class RenderErrorBox extends RenderBox {
/// See also:
/// See also:
///
///
/// * [minimumWidth], which controls how wide the box must be before the
/// * [minimumWidth], which controls how wide the box must be before the
//
horizontal padding is applied.
//
/
horizontal padding is applied.
static
EdgeInsets
padding
=
const
EdgeInsets
.
fromLTRB
(
64.0
,
96.0
,
64.0
,
12.0
);
static
EdgeInsets
padding
=
const
EdgeInsets
.
fromLTRB
(
64.0
,
96.0
,
64.0
,
12.0
);
/// The width below which the horizontal padding is not applied.
/// The width below which the horizontal padding is not applied.
...
...
packages/flutter/lib/src/rendering/object.dart
View file @
827cbc35
...
@@ -3489,9 +3489,9 @@ abstract class _InterestingSemanticsFragment extends _SemanticsFragment {
...
@@ -3489,9 +3489,9 @@ abstract class _InterestingSemanticsFragment extends _SemanticsFragment {
/// * [SemanticsNode.parentSemanticsClipRect] for the source and definition
/// * [SemanticsNode.parentSemanticsClipRect] for the source and definition
/// of the `parentSemanticsClipRect` argument.
/// of the `parentSemanticsClipRect` argument.
/// * [SemanticsNode.parentPaintClipRect] for the source and definition
/// * [SemanticsNode.parentPaintClipRect] for the source and definition
//
of the `parentPaintClipRect` argument.
//
/
of the `parentPaintClipRect` argument.
/// * [SemanticsNode.elevationAdjustment] for the source and definition
/// * [SemanticsNode.elevationAdjustment] for the source and definition
// of the `elevationAdjustment` argument.
//
/
of the `elevationAdjustment` argument.
void
compileChildren
({
void
compileChildren
({
required
Rect
?
parentSemanticsClipRect
,
required
Rect
?
parentSemanticsClipRect
,
required
Rect
?
parentPaintClipRect
,
required
Rect
?
parentPaintClipRect
,
...
...
packages/flutter/lib/src/services/text_formatter.dart
View file @
827cbc35
...
@@ -356,7 +356,7 @@ class LengthLimitingTextInputFormatter extends TextInputFormatter {
...
@@ -356,7 +356,7 @@ class LengthLimitingTextInputFormatter extends TextInputFormatter {
///
///
/// See also:
/// See also:
/// * [Dart's characters package](https://pub.dev/packages/characters).
/// * [Dart's characters package](https://pub.dev/packages/characters).
/// * [Dart's documen
e
tation on runes and grapheme clusters](https://dart.dev/guides/language/language-tour#runes-and-grapheme-clusters).
/// * [Dart's documentation on runes and grapheme clusters](https://dart.dev/guides/language/language-tour#runes-and-grapheme-clusters).
@visibleForTesting
@visibleForTesting
static
TextEditingValue
truncate
(
TextEditingValue
value
,
int
maxLength
)
{
static
TextEditingValue
truncate
(
TextEditingValue
value
,
int
maxLength
)
{
final
CharacterRange
iterator
=
CharacterRange
(
value
.
text
);
final
CharacterRange
iterator
=
CharacterRange
(
value
.
text
);
...
...
packages/flutter/lib/src/widgets/editable_text.dart
View file @
827cbc35
...
@@ -564,7 +564,7 @@ class EditableText extends StatefulWidget {
...
@@ -564,7 +564,7 @@ class EditableText extends StatefulWidget {
///
///
/// See also:
/// See also:
///
///
/// * [showCursor], which controls the visibility of the cursor.
.
/// * [showCursor], which controls the visibility of the cursor.
final
bool
showSelectionHandles
;
final
bool
showSelectionHandles
;
/// {@template flutter.widgets.editableText.showCursor}
/// {@template flutter.widgets.editableText.showCursor}
...
...
packages/flutter/lib/src/widgets/scroll_physics.dart
View file @
827cbc35
...
@@ -669,7 +669,7 @@ class BouncingScrollPhysics extends ScrollPhysics {
...
@@ -669,7 +669,7 @@ class BouncingScrollPhysics extends ScrollPhysics {
/// glow color is specified to use [ThemeData.accentColor].
/// glow color is specified to use [ThemeData.accentColor].
class
ClampingScrollPhysics
extends
ScrollPhysics
{
class
ClampingScrollPhysics
extends
ScrollPhysics
{
/// Creates scroll physics that prevent the scroll offset from exceeding the
/// Creates scroll physics that prevent the scroll offset from exceeding the
/// bounds of the content.
.
/// bounds of the content.
const
ClampingScrollPhysics
({
ScrollPhysics
?
parent
})
:
super
(
parent:
parent
);
const
ClampingScrollPhysics
({
ScrollPhysics
?
parent
})
:
super
(
parent:
parent
);
@override
@override
...
...
packages/flutter/test/material/page_selector_test.dart
View file @
827cbc35
...
@@ -92,7 +92,7 @@ void main() {
...
@@ -92,7 +92,7 @@ void main() {
tabController
.
animateTo
(
1
,
duration:
const
Duration
(
milliseconds:
200
));
tabController
.
animateTo
(
1
,
duration:
const
Duration
(
milliseconds:
200
));
await
tester
.
pump
();
await
tester
.
pump
();
// Verify that indicator 0's color is becoming increasingly transparent,
// Verify that indicator 0's color is becoming increasingly transparent,
//
/
and indicator 1's color is becoming increasingly opaque during the
// and indicator 1's color is becoming increasingly opaque during the
// 200ms animation. Indicator 2 remains transparent throughout.
// 200ms animation. Indicator 2 remains transparent throughout.
await
tester
.
pump
(
const
Duration
(
milliseconds:
10
));
await
tester
.
pump
(
const
Duration
(
milliseconds:
10
));
List
<
Color
>
colors
=
indicatorColors
(
tester
);
List
<
Color
>
colors
=
indicatorColors
(
tester
);
...
...
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