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
30d47369
Commit
30d47369
authored
May 03, 2017
by
Ian Hickson
Committed by
GitHub
May 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Random dartdoc fixes (#9745)
parent
87d0010a
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
57 additions
and
49 deletions
+57
-49
animation_controller.dart
packages/flutter/lib/src/animation/animation_controller.dart
+3
-3
curves.dart
packages/flutter/lib/src/animation/curves.dart
+14
-4
slider.dart
packages/flutter/lib/src/cupertino/slider.dart
+0
-2
assertions.dart
packages/flutter/lib/src/foundation/assertions.dart
+1
-1
app_bar.dart
packages/flutter/lib/src/material/app_bar.dart
+0
-2
checkbox.dart
packages/flutter/lib/src/material/checkbox.dart
+3
-3
date_picker.dart
packages/flutter/lib/src/material/date_picker.dart
+5
-4
flexible_space_bar.dart
packages/flutter/lib/src/material/flexible_space_bar.dart
+1
-1
radio.dart
packages/flutter/lib/src/material/radio.dart
+2
-3
slider.dart
packages/flutter/lib/src/material/slider.dart
+2
-3
switch.dart
packages/flutter/lib/src/material/switch.dart
+3
-3
typography.dart
packages/flutter/lib/src/material/typography.dart
+5
-3
decoration.dart
packages/flutter/lib/src/painting/decoration.dart
+1
-1
box.dart
packages/flutter/lib/src/rendering/box.dart
+3
-2
semantics.dart
packages/flutter/lib/src/rendering/semantics.dart
+2
-2
viewport_offset.dart
packages/flutter/lib/src/rendering/viewport_offset.dart
+1
-1
animated_list.dart
packages/flutter/lib/src/widgets/animated_list.dart
+7
-7
implicit_animations.dart
packages/flutter/lib/src/widgets/implicit_animations.dart
+1
-1
transitions.dart
packages/flutter/lib/src/widgets/transitions.dart
+1
-1
finders.dart
packages/flutter_test/lib/src/finders.dart
+2
-2
No files found.
packages/flutter/lib/src/animation/animation_controller.dart
View file @
30d47369
...
...
@@ -165,9 +165,9 @@ class AnimationController extends Animation<double>
/// identifying animation controller instances in debug output.
final
String
debugLabel
;
/// Returns an [Animat
ed<double>] for this animation controller,
///
so that a pointer to this object can be passed around withou
t
///
allowing users of that pointer to mutate the AnimationController
state.
/// Returns an [Animat
ion<double>] for this animation controller, so that a
///
pointer to this object can be passed around without allowing users of tha
t
///
pointer to mutate the [AnimationController]
state.
Animation
<
double
>
get
view
=>
this
;
/// The length of time this animation should last.
...
...
packages/flutter/lib/src/animation/curves.dart
View file @
30d47369
...
...
@@ -73,20 +73,30 @@ class SawTooth extends Curve {
}
}
/// A curve that is 0.0 until [start], then curved from 0.0 to 1.0 at [end], then 1.0.
/// A curve that is 0.0 until [begin], then curved (according to [curve] from
/// 0.0 to 1.0 at [end], then 1.0.
///
/// An [Interval] can be used to delay an animation. For example, a six second
/// animation that uses an [Interval] with its [begin] set to 0.5 and its [end]
/// set to 1.0 will essentially become a three-second animation that starts
/// three seconds later.
class
Interval
extends
Curve
{
/// Creates an interval curve.
///
/// The
[start] and [end]
arguments must not be null.
/// The arguments must not be null.
const
Interval
(
this
.
begin
,
this
.
end
,
{
this
.
curve
:
Curves
.
linear
});
/// The smallest value for which this interval is 0.0.
/// The largest value for which this interval is 0.0.
///
/// From t=0.0 to t=`begin`, the interval's value is 0.0.
final
double
begin
;
/// The smallest value for which this interval is 1.0.
///
/// From t=`end` to t=1.0, the interval's value is 1.0.
final
double
end
;
/// The curve to apply between [
start
] and [end].
/// The curve to apply between [
begin
] and [end].
final
Curve
curve
;
@override
...
...
packages/flutter/lib/src/cupertino/slider.dart
View file @
30d47369
...
...
@@ -100,8 +100,6 @@ class CupertinoSlider extends StatefulWidget {
/// The number of discrete divisions.
///
/// Typically used with [label] to show the current discrete value.
///
/// If null, the slider is continuous.
final
int
divisions
;
...
...
packages/flutter/lib/src/foundation/assertions.dart
View file @
30d47369
...
...
@@ -5,7 +5,7 @@
import
'basic_types.dart'
;
import
'print.dart'
;
/// Signature for [FlutterError.onE
xception
] handler.
/// Signature for [FlutterError.onE
rror
] handler.
typedef
void
FlutterExceptionHandler
(
FlutterErrorDetails
details
);
/// Signature for [FlutterErrorDetails.informationCollector] callback
...
...
packages/flutter/lib/src/material/app_bar.dart
View file @
30d47369
...
...
@@ -838,8 +838,6 @@ class SliverAppBar extends StatefulWidget {
///
/// This does not include the status bar height (which will be automatically
/// included if [primary] is true).
///
/// See also [AppBar.getExpandedHeightFor].
final
double
expandedHeight
;
/// Whether the app bar should become visible as soon as the user scrolls
...
...
packages/flutter/lib/src/material/checkbox.dart
View file @
30d47369
...
...
@@ -25,9 +25,9 @@ import 'toggleable.dart';
///
/// See also:
///
/// * [
Radio]
/// * [
Switch]
/// * [Slider]
/// * [
Switch], another widget with similar semantics.
/// * [
Radio], for selecting among a set of explicit values.
/// * [Slider]
, for selecting a value in a range.
/// * <https://material.google.com/components/selection-controls.html#selection-controls-checkbox>
/// * <https://material.google.com/components/lists-controls.html#lists-controls-types-of-list-controls>
class
Checkbox
extends
StatefulWidget
{
...
...
packages/flutter/lib/src/material/date_picker.dart
View file @
30d47369
...
...
@@ -172,7 +172,7 @@ const _DayPickerGridDelegate _kDayPickerGridDelegate = const _DayPickerGridDeleg
class
DayPicker
extends
StatelessWidget
{
/// Creates a day picker.
///
/// Rarely used directly. Instead, typically used as part of a [
Date
Picker].
/// Rarely used directly. Instead, typically used as part of a [
Month
Picker].
DayPicker
({
Key
key
,
@required
this
.
selectedDate
,
...
...
@@ -323,7 +323,8 @@ class DayPicker extends StatelessWidget {
class
MonthPicker
extends
StatefulWidget
{
/// Creates a month picker.
///
/// Rarely used directly. Instead, typically used as part of a [DatePicker].
/// Rarely used directly. Instead, typically used as part of the dialog shown
/// by [showDatePicker].
MonthPicker
({
Key
key
,
@required
this
.
selectedDate
,
...
...
@@ -511,7 +512,8 @@ class YearPicker extends StatefulWidget {
/// The [selectedDate] and [onChanged] arguments must not be null. The
/// [lastDate] must be after the [firstDate].
///
/// Rarely used directly. Instead, typically used as part of a [DatePicker].
/// Rarely used directly. Instead, typically used as part of the dialog shown
/// by [showDatePicker].
YearPicker
({
Key
key
,
@required
this
.
selectedDate
,
...
...
@@ -687,7 +689,6 @@ class _DatePickerDialogState extends State<_DatePickerDialog> {
],
),
);
return
new
Dialog
(
child:
new
OrientationBuilder
(
builder:
(
BuildContext
context
,
Orientation
orientation
)
{
...
...
packages/flutter/lib/src/material/flexible_space_bar.dart
View file @
30d47369
...
...
@@ -44,7 +44,7 @@ class FlexibleSpaceBar extends StatefulWidget {
/// Shown behind the [title] when expanded.
///
/// Typically an [
AssetImage] widget with [Asset
Image.fit] set to [BoxFit.cover].
/// Typically an [
Image] widget with [
Image.fit] set to [BoxFit.cover].
final
Widget
background
;
/// Whether the title should be centered.
...
...
packages/flutter/lib/src/material/radio.dart
View file @
30d47369
...
...
@@ -31,9 +31,8 @@ const double _kInnerRadius = 5.0;
///
/// See also:
///
/// * [CheckBox]
/// * [Slider]
/// * [Switch]
/// * [Slider], for selecting a value in a range.
/// * [Checkbox] and [Switch], for toggling a particular value on or off.
/// * <https://material.google.com/components/selection-controls.html#selection-controls-radio-button>
class
Radio
<
T
>
extends
StatefulWidget
{
/// Creates a material design radio button.
...
...
packages/flutter/lib/src/material/slider.dart
View file @
30d47369
...
...
@@ -35,9 +35,8 @@ import 'typography.dart';
///
/// See also:
///
/// * [CheckBox]
/// * [Radio]
/// * [Switch]
/// * [Radio], for selecting among a set of explicit values.
/// * [Checkbox] and [Switch], for toggling a particular value on or off.
/// * <https://material.google.com/components/sliders.html>
class
Slider
extends
StatefulWidget
{
/// Creates a material design slider.
...
...
packages/flutter/lib/src/material/switch.dart
View file @
30d47369
...
...
@@ -28,9 +28,9 @@ import 'toggleable.dart';
///
/// See also:
///
/// * [Check
Box]
/// * [Radio]
/// * [Slider]
/// * [Check
box], another widget with similar semantics.
/// * [Radio]
, for selecting among a set of explicit values.
/// * [Slider]
, for selecting a value in a range.
/// * <https://material.google.com/components/selection-controls.html#selection-controls-switch>
class
Switch
extends
StatefulWidget
{
/// Creates a material design switch.
...
...
packages/flutter/lib/src/material/typography.dart
View file @
30d47369
...
...
@@ -111,7 +111,7 @@ class TextTheme {
/// Very, very large text.
///
/// Used for the date in
[
DatePicker].
/// Used for the date in
the dialog shown by [show
DatePicker].
final
TextStyle
display3
;
/// Very large text.
...
...
@@ -120,10 +120,12 @@ class TextTheme {
/// Large text.
final
TextStyle
display1
;
/// Used for large text in dialogs (e.g., the month and year in [DatePicker]).
/// Used for large text in dialogs (e.g., the month and year in the dialog
/// shown by [showDatePicker]).
final
TextStyle
headline
;
/// Used for the primary text in app bars and dialogs (e.g., [AppBar.title] and [Dialog.title]).
/// Used for the primary text in app bars and dialogs (e.g., [AppBar.title]
/// and [AlertDialog.title]).
final
TextStyle
title
;
/// Used for the primary text in lists (e.g., [ListTile.title]).
...
...
packages/flutter/lib/src/painting/decoration.dart
View file @
30d47369
...
...
@@ -78,7 +78,7 @@ abstract class Decoration {
///
/// The `onChanged` argument configures [BoxPainter.onChanged]. It can be
/// omitted if there is no chance that the painter will change (for example,
/// if it is a [BoxDecoration] with definitely no [
Background
Image]).
/// if it is a [BoxDecoration] with definitely no [
Decoration
Image]).
BoxPainter
createBoxPainter
([
VoidCallback
onChanged
]);
/// Returns a string representation of this object.
...
...
packages/flutter/lib/src/rendering/box.dart
View file @
30d47369
...
...
@@ -22,7 +22,7 @@ class _DebugSize extends Size {
/// Immutable layout constraints for [RenderBox] layout.
///
/// A size respects a
BoxConstraints
if, and only if, all of the following
/// A size respects a
[BoxConstraints]
if, and only if, all of the following
/// relations hold:
///
/// * `minWidth <= size.width <= maxWidth`
...
...
@@ -343,7 +343,8 @@ class BoxConstraints extends Constraints {
/// Linearly interpolate between two BoxConstraints.
///
/// If either is null, this function interpolates from [BoxConstraints.zero].
/// If either is null, this function interpolates from a [BoxConstraints]
/// object whose fields are all set to 0.0.
static
BoxConstraints
lerp
(
BoxConstraints
a
,
BoxConstraints
b
,
double
t
)
{
if
(
a
==
null
&&
b
==
null
)
return
null
;
...
...
packages/flutter/lib/src/rendering/semantics.dart
View file @
30d47369
...
...
@@ -18,8 +18,8 @@ export 'dart:ui' show SemanticsAction;
/// being tapped, etc.
///
/// These handlers will only be called if the relevant flag is set
/// (e.g. [handleSemanticTap]
()
will only be called if
/// [SemanticsNode.canBeTapped] is true, [handleSemanticScrollDown]
()
will only
/// (e.g. [handleSemanticTap] will only be called if
/// [SemanticsNode.canBeTapped] is true, [handleSemanticScrollDown] will only
/// be called if [SemanticsNode.canBeScrolledVertically] is true, etc).
abstract
class
SemanticsActionHandler
{
// ignore: one_member_abstracts
/// Called when the object implementing this interface receives a
...
...
packages/flutter/lib/src/rendering/viewport_offset.dart
View file @
30d47369
...
...
@@ -34,7 +34,7 @@ enum ScrollDirection {
/// Returns the opposite of the given [ScrollDirection].
///
/// Specifically, returns [
AxisDirection.reverse] for [Axis
Direction.forward]
/// Specifically, returns [
ScrollDirection.reverse] for [Scroll
Direction.forward]
/// (and vice versa) and returns [ScrollDirection.idle] for
/// [ScrollDirection.idle].
ScrollDirection
flipScrollDirection
(
ScrollDirection
direction
)
{
...
...
packages/flutter/lib/src/widgets/animated_list.dart
View file @
30d47369
...
...
@@ -17,7 +17,7 @@ import 'ticker_provider.dart';
/// Signature for the builder callback used by [AnimatedList].
typedef
Widget
AnimatedListItemBuilder
(
BuildContext
context
,
int
index
,
Animation
<
double
>
animation
);
/// Signature for the builder callback used by [AnimatedList
.remove
].
/// Signature for the builder callback used by [AnimatedList
State.removeItem
].
typedef
Widget
AnimatedListRemovedItemBuilder
(
BuildContext
context
,
Animation
<
double
>
animation
);
// The default insert/remove animation duration.
...
...
@@ -67,13 +67,13 @@ class AnimatedList extends StatefulWidget {
/// List items are only built when they're scrolled into view.
///
/// The [AnimatedListItemBuilder] index parameter indicates the item's
/// posiition in the list. The value of the index parameter will be between 0
and
///
[initialItemCount] plus the total number of items that have been inserted
///
with [AnimatedListState.insertItem] and less the total number of items
///
that have been removed with [AnimatedList
.removeItem].
/// posiition in the list. The value of the index parameter will be between 0
///
and [initialItemCount] plus the total number of items that have been
///
inserted with [AnimatedListState.insertItem] and less the total number of
///
items that have been removed with [AnimatedListState
.removeItem].
///
/// Implementations of this callback should assume that
[AnimatedList.removeItem]
/// removes an item immediately.
/// Implementations of this callback should assume that
///
[AnimatedListState.removeItem]
removes an item immediately.
final
AnimatedListItemBuilder
itemBuilder
;
/// The number of items the list will start with.
...
...
packages/flutter/lib/src/widgets/implicit_animations.dart
View file @
30d47369
...
...
@@ -11,7 +11,7 @@ import 'framework.dart';
import
'text.dart'
;
import
'ticker_provider.dart'
;
/// An interpolation between two [BoxConstraint
]s
.
/// An interpolation between two [BoxConstraint
s]
.
class
BoxConstraintsTween
extends
Tween
<
BoxConstraints
>
{
/// Creates a box constraints tween.
///
...
...
packages/flutter/lib/src/widgets/transitions.dart
View file @
30d47369
...
...
@@ -397,7 +397,7 @@ class RelativePositionedTransition extends AnimatedWidget {
/// * [AnimatedContainer], a more full-featured container that also animates on
/// decoration using an internal animation.
class
DecoratedBoxTransition
extends
AnimatedWidget
{
/// Creates an animated [Decorat
ion
Box] whose [Decoration] animation updates
/// Creates an animated [Decorat
ed
Box] whose [Decoration] animation updates
/// the widget.
///
/// The [decoration] and [position] cannot be null.
...
...
packages/flutter_test/lib/src/finders.dart
View file @
30d47369
...
...
@@ -7,10 +7,10 @@ import 'package:meta/meta.dart';
import
'all_elements.dart'
;
/// Signature for [CommonFinders.byPredicate].
/// Signature for [CommonFinders.by
Widget
Predicate].
typedef
bool
WidgetPredicate
(
Widget
widget
);
/// Signature for [CommonFinders.byElement].
/// Signature for [CommonFinders.byElement
Predicate
].
typedef
bool
ElementPredicate
(
Element
element
);
/// Some frequently used widget [Finder]s.
...
...
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