Update the docs for ProgressIndicator to remove some unnecessary adaptive descriptions. (#81427)
This commit is contained in:
parent
9ac08b4962
commit
8071576cc6
@ -58,9 +58,6 @@ abstract class ProgressIndicator extends StatefulWidget {
|
|||||||
/// If null, this progress indicator is indeterminate, which means the
|
/// If null, this progress indicator is indeterminate, which means the
|
||||||
/// indicator displays a predetermined animation that does not indicate how
|
/// indicator displays a predetermined animation that does not indicate how
|
||||||
/// much actual progress is being made.
|
/// much actual progress is being made.
|
||||||
///
|
|
||||||
/// This property is ignored if used in an adaptive constructor inside an iOS
|
|
||||||
/// environment.
|
|
||||||
final double? value;
|
final double? value;
|
||||||
|
|
||||||
/// The progress indicator's background color.
|
/// The progress indicator's background color.
|
||||||
@ -77,9 +74,6 @@ abstract class ProgressIndicator extends StatefulWidget {
|
|||||||
/// [ProgressIndicatorThemeData.color] will be used. If that
|
/// [ProgressIndicatorThemeData.color] will be used. If that
|
||||||
/// is null then the current theme's [ColorScheme.primary] will
|
/// is null then the current theme's [ColorScheme.primary] will
|
||||||
/// be used by default.
|
/// be used by default.
|
||||||
///
|
|
||||||
/// This property is ignored if used in an adaptive constructor inside an iOS
|
|
||||||
/// environment.
|
|
||||||
/// {@endtemplate}
|
/// {@endtemplate}
|
||||||
final Color? color;
|
final Color? color;
|
||||||
|
|
||||||
@ -88,9 +82,6 @@ abstract class ProgressIndicator extends StatefulWidget {
|
|||||||
/// If null, the progress indicator is rendered with [color]. If that is null,
|
/// If null, the progress indicator is rendered with [color]. If that is null,
|
||||||
/// then it will use the ambient [ProgressIndicatorThemeData.color]. If that
|
/// then it will use the ambient [ProgressIndicatorThemeData.color]. If that
|
||||||
/// is also null then it defaults to the current theme's [ColorScheme.primary].
|
/// is also null then it defaults to the current theme's [ColorScheme.primary].
|
||||||
///
|
|
||||||
/// This property is ignored if used in an adaptive constructor inside an iOS
|
|
||||||
/// environment.
|
|
||||||
final Animation<Color?>? valueColor;
|
final Animation<Color?>? valueColor;
|
||||||
|
|
||||||
/// {@template flutter.progress_indicator.ProgressIndicator.semanticsLabel}
|
/// {@template flutter.progress_indicator.ProgressIndicator.semanticsLabel}
|
||||||
@ -99,9 +90,6 @@ abstract class ProgressIndicator extends StatefulWidget {
|
|||||||
/// This value indicates the purpose of the progress bar, and will be
|
/// This value indicates the purpose of the progress bar, and will be
|
||||||
/// read out by screen readers to indicate the purpose of this progress
|
/// read out by screen readers to indicate the purpose of this progress
|
||||||
/// indicator.
|
/// indicator.
|
||||||
///
|
|
||||||
/// This property is ignored if used in an adaptive constructor inside an iOS
|
|
||||||
/// environment.
|
|
||||||
/// {@endtemplate}
|
/// {@endtemplate}
|
||||||
final String? semanticsLabel;
|
final String? semanticsLabel;
|
||||||
|
|
||||||
@ -116,9 +104,6 @@ abstract class ProgressIndicator extends StatefulWidget {
|
|||||||
/// For determinate progress indicators, this will be defaulted to
|
/// For determinate progress indicators, this will be defaulted to
|
||||||
/// [ProgressIndicator.value] expressed as a percentage, i.e. `0.1` will
|
/// [ProgressIndicator.value] expressed as a percentage, i.e. `0.1` will
|
||||||
/// become '10%'.
|
/// become '10%'.
|
||||||
///
|
|
||||||
/// This property is ignored if used in an adaptive constructor inside an iOS
|
|
||||||
/// environment.
|
|
||||||
/// {@endtemplate}
|
/// {@endtemplate}
|
||||||
final String? semanticsValue;
|
final String? semanticsValue;
|
||||||
|
|
||||||
@ -347,9 +332,6 @@ class LinearProgressIndicator extends ProgressIndicator {
|
|||||||
/// ambient [ProgressIndicatorThemeData.linearTrackColor] will be used.
|
/// ambient [ProgressIndicatorThemeData.linearTrackColor] will be used.
|
||||||
/// If that is null, then the ambient theme's [ColorScheme.background]
|
/// If that is null, then the ambient theme's [ColorScheme.background]
|
||||||
/// will be used to draw the track.
|
/// will be used to draw the track.
|
||||||
///
|
|
||||||
/// This property is ignored if used in an adaptive constructor inside an iOS
|
|
||||||
/// environment.
|
|
||||||
/// {@endtemplate}
|
/// {@endtemplate}
|
||||||
@override
|
@override
|
||||||
Color? get backgroundColor => super.backgroundColor;
|
Color? get backgroundColor => super.backgroundColor;
|
||||||
@ -640,17 +622,11 @@ class CircularProgressIndicator extends ProgressIndicator {
|
|||||||
/// If [CircularProgressIndicator.backgroundColor] is null then the
|
/// If [CircularProgressIndicator.backgroundColor] is null then the
|
||||||
/// ambient [ProgressIndicatorThemeData.circularTrackColor] will be used.
|
/// ambient [ProgressIndicatorThemeData.circularTrackColor] will be used.
|
||||||
/// If that is null, then the track will not be painted.
|
/// If that is null, then the track will not be painted.
|
||||||
///
|
|
||||||
/// This property is ignored if used in an adaptive constructor inside an iOS
|
|
||||||
/// environment.
|
|
||||||
/// {@endtemplate}
|
/// {@endtemplate}
|
||||||
@override
|
@override
|
||||||
Color? get backgroundColor => super.backgroundColor;
|
Color? get backgroundColor => super.backgroundColor;
|
||||||
|
|
||||||
/// The width of the line used to draw the circle.
|
/// The width of the line used to draw the circle.
|
||||||
///
|
|
||||||
/// This property is ignored if used in an adaptive constructor inside an iOS
|
|
||||||
/// environment.
|
|
||||||
final double strokeWidth;
|
final double strokeWidth;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user