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
b3046a6c
Unverified
Commit
b3046a6c
authored
Mar 19, 2019
by
Hans Muller
Committed by
GitHub
Mar 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update progress indicator API docs (#29564)
parent
c4181b06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
26 deletions
+34
-26
progress_indicator.dart
packages/flutter/lib/src/material/progress_indicator.dart
+34
-26
No files found.
packages/flutter/lib/src/material/progress_indicator.dart
View file @
b3046a6c
...
...
@@ -28,11 +28,11 @@ const int _kIndeterminateLinearDuration = 1800;
abstract
class
ProgressIndicator
extends
StatefulWidget
{
/// Creates a progress indicator.
///
/// The [value] argument can be either null (corresponding to an indeterminate
/// progress indicator) or non-null (corresponding to a determinate progress
/// indicator). See [value] for details.
/// {@template flutter.material.progressIndicator.parameters}
/// The [value] argument can either be null for an indeterminate
/// progress indicator, or non-null for a determinate progress
/// indicator.
///
/// {@template flutter.material.progressIndicator.semantics}
/// ## Accessibility
///
/// The [semanticsLabel] can be used to identify the purpose of this progress
...
...
@@ -48,21 +48,23 @@ abstract class ProgressIndicator extends StatefulWidget {
this
.
semanticsValue
,
})
:
super
(
key:
key
);
/// If non-null, the value of this progress indicator
with 0.0 corresponding
///
to no progress having been made and 1.0 corresponding to all the progress
///
having been mad
e.
/// If non-null, the value of this progress indicator
.
///
///
A value of 0.0 means no progress and 1.0 means that progress is complet
e.
///
/// If null, this progress indicator is indeterminate, which means the
/// indicator displays a predetermined animation that does not indicat
or
how
/// indicator displays a predetermined animation that does not indicat
e
how
/// much actual progress is being made.
final
double
value
;
/// The progress indicator's background color. The current theme's
/// [ThemeData.backgroundColor] by default.
/// The progress indicator's background color.
///
/// The current theme's [ThemeData.backgroundColor] by default.
final
Color
backgroundColor
;
/// The indicator's color is the animation's value. To specify a constant
/// color use: `new AlwaysStoppedAnimation<Color>(color)`.
/// The progress indicator's color as an animated value.
///
/// To specify a constant color use: `AlwaysStoppedAnimation<Color>(color)`.
///
/// If null, the progress indicator is rendered with the current theme's
/// [ThemeData.accentColor].
...
...
@@ -216,18 +218,19 @@ class _LinearProgressIndicatorPainter extends CustomPainter {
/// made without indicating how much progress remains. To create an
/// indeterminate progress indicator, use a null [value].
///
/// The indicator line is displayed with [valueColor], an animated value. To
/// specify a constant color value use: `AlwaysStoppedAnimation<Color>(color)`.
///
/// See also:
///
/// * [CircularProgressIndicator]
/// * [CircularProgressIndicator], which shows progress along a circular arc.
/// * [RefreshIndicator], which automatically displays a [CircularProgressIndicator]
/// when the underlying vertical scrollable is overscrolled.
/// * <https://material.io/design/components/progress-indicators.html#linear-progress-indicators>
class
LinearProgressIndicator
extends
ProgressIndicator
{
/// Creates a linear progress indicator.
///
/// The [value] argument can be either null (corresponding to an indeterminate
/// progress indicator) or non-null (corresponding to a determinate progress
/// indicator). See [value] for details.
///
/// {@macro flutter.material.progressIndicator.semantics}
/// {@macro flutter.material.progressIndicator.parameters}
const
LinearProgressIndicator
({
Key
key
,
double
value
,
...
...
@@ -396,18 +399,19 @@ class _CircularProgressIndicatorPainter extends CustomPainter {
/// made without indicating how much progress remains. To create an
/// indeterminate progress indicator, use a null [value].
///
/// The indicator arc is displayed with [valueColor], an animated value. To
/// specify a constant color use: `AlwaysStoppedAnimation<Color>(color)`.
///
/// See also:
///
/// * [LinearProgressIndicator]
/// * [LinearProgressIndicator], which displays progress along a line.
/// * [RefreshIndicator], which automatically displays a [CircularProgressIndicator]
/// when the underlying vertical scrollable is overscrolled.
/// * <https://material.io/design/components/progress-indicators.html#circular-progress-indicators>
class
CircularProgressIndicator
extends
ProgressIndicator
{
/// Creates a circular progress indicator.
///
/// The [value] argument can be either null (corresponding to an indeterminate
/// progress indicator) or non-null (corresponding to a determinate progress
/// indicator). See [value] for details.
///
/// {@macro flutter.material.progressIndicator.semantics}
/// {@macro flutter.material.progressIndicator.parameters}
const
CircularProgressIndicator
({
Key
key
,
double
value
,
...
...
@@ -588,16 +592,20 @@ class _RefreshProgressIndicatorPainter extends _CircularProgressIndicatorPainter
/// a complete implementation of swipe-to-refresh driven by a [Scrollable]
/// widget.
///
/// The indicator arc is displayed with [valueColor], an animated value. To
/// specify a constant color use: `AlwaysStoppedAnimation<Color>(color)`.
///
/// See also:
///
/// * [RefreshIndicator]
/// * [RefreshIndicator], which automatically displays a [CircularProgressIndicator]
/// when the underlying vertical scrollable is overscrolled.
class
RefreshProgressIndicator
extends
CircularProgressIndicator
{
/// Creates a refresh progress indicator.
///
/// Rather than creating a refresh progress indicator directly, consider using
/// a [RefreshIndicator] together with a [Scrollable] widget.
///
/// {@macro flutter.material.progressIndicator.
semantic
s}
/// {@macro flutter.material.progressIndicator.
parameter
s}
const
RefreshProgressIndicator
({
Key
key
,
double
value
,
...
...
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