pub struct ProgressIndicatorThemeData {Show 16 fields
pub color: Option<Color>,
pub linear_track_color: Option<Color>,
pub linear_min_height: Option<f64>,
pub circular_track_color: Option<Color>,
pub refresh_background_color: Option<Color>,
pub border_radius: Option<BorderRadiusGeometry>,
pub stop_indicator_color: Option<Color>,
pub stop_indicator_radius: Option<f64>,
pub stroke_width: Option<f64>,
pub stroke_align: Option<f64>,
pub stroke_cap: Option<StrokeCap>,
pub constraints: Option<BoxConstraints>,
pub track_gap: Option<f64>,
pub circular_track_padding: Option<EdgeInsetsGeometry>,
pub year2023: Option<bool>,
pub controller: Option<Ref<AnimationController>>,
}Expand description
Overrides the default values of visual properties for descendant
ProgressIndicator widgets.
Descendant widgets obtain the current ProgressIndicatorThemeData object
with ProgressIndicatorTheme::of. Instances of ProgressIndicatorThemeData
can be customized with ProgressIndicatorThemeData::copy_with.
Typically a ProgressIndicatorThemeData is specified as part of the overall
Theme with ThemeData::progress_indicator_theme.
See also:
ProgressIndicatorTheme, anInheritedWidgetthat propagates the theme down its subtree.ThemeData::progress_indicator_theme, which describes the defaults for any progress indicators as part of the application’sThemeData.
Fields§
§color: Option<Color>The color of the ProgressIndicator’s indicator.
If null, then it will use ColorScheme::primary of the ambient
ThemeData::color_scheme.
See also:
ProgressIndicator.color, which specifies the indicator color for a specific progress indicator.ProgressIndicator.valueColor, which specifies the indicator color a an animated color.
linear_track_color: Option<Color>Color of the track being filled by the linear indicator.
If LinearProgressIndicator.backgroundColor is null then the
ambient linear_track_color will be used.
If that is null, then the ambient theme’s ColorScheme::background
will be used to draw the track.
linear_min_height: Option<f64>The minimum height of the line used to draw the linear indicator.
If LinearProgressIndicator.minHeight is null then it will use the
ambient linear_min_height. If that is null
it will use 4dp.
circular_track_color: Option<Color>Color of the circular track being filled by the circular indicator.
If CircularProgressIndicator.backgroundColor is null then the
ambient circular_track_color will be used.
If that is null, then the track will not be painted.
refresh_background_color: Option<Color>Background color of that fills the circle under the refresh indicator.
If RefreshIndicator.backgroundColor is null then the
ambient refresh_background_color will be used.
If that is null, then the ambient theme’s ThemeData::canvas_color
will be used.
border_radius: Option<BorderRadiusGeometry>Overrides the border radius of the ProgressIndicator.
stop_indicator_color: Option<Color>Overrides the stop indicator color of the LinearProgressIndicator.
If LinearProgressIndicator.year2023 is true or ThemeData::use_material3
is false, then no stop indicator will be drawn.
stop_indicator_radius: Option<f64>Overrides the stop indicator radius of the LinearProgressIndicator.
If LinearProgressIndicator.year2023 is true or ThemeData::use_material3
is false, then no stop indicator will be drawn.
stroke_width: Option<f64>Overrides the stroke width of the CircularProgressIndicator.
stroke_align: Option<f64>Overrides the stroke align of the CircularProgressIndicator.
stroke_cap: Option<StrokeCap>Overrides the stroke cap of the CircularProgressIndicator.
constraints: Option<BoxConstraints>Overrides the constraints of the CircularProgressIndicator.
track_gap: Option<f64>Overrides the active indicator and the background track.
If CircularProgressIndicator.year2023 is true or ThemeData::use_material3
is false, then no track gap will be drawn.
If LinearProgressIndicator.year2023 is true or ThemeData::use_material3
is false, then no track gap will be drawn.
circular_track_padding: Option<EdgeInsetsGeometry>Overrides the padding of the CircularProgressIndicator.
year2023: Option<bool>Set this flag to false to opt into the 2024 progress indicator appearance. Defaults to true. In the future, this flag will default to false. Use ProgressIndicatorThemeData to customize individual properties. This feature was deprecated after v3.27.0-0.2.pre.
Overrides the CircularProgressIndicator.year2023 and
LinearProgressIndicator.year2023 properties.
When true, the CircularProgressIndicator and LinearProgressIndicator
will use the 2023 Material Design 3 appearance. Defaults to true.
If this is set to false, the CircularProgressIndicator and
LinearProgressIndicator will use the latest Material Design 3 appearance,
which was introduced in December 2023.
If ThemeData::use_material3 is false, then this property is ignored.
controller: Option<Ref<AnimationController>>Defines a default AnimationController for descendant
CircularProgressIndicator and LinearProgressIndicator widgets.
If a descendant progress indicator’s controller property is null, this
controller will be used to drive its indeterminate animation. This allows
a single controller to synchronize the animations of multiple indicators.
If this property is also null, the progress indicator will create and
manage its own internal AnimationController.
Implementations§
Source§impl ProgressIndicatorThemeData
impl ProgressIndicatorThemeData
Sourcepub fn new() -> ProgressIndicatorThemeData
pub fn new() -> ProgressIndicatorThemeData
Creates the set of properties used to configure ProgressIndicator widgets.
Sourcepub fn color(self, color: Color) -> ProgressIndicatorThemeData
pub fn color(self, color: Color) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(color:).
Sourcepub fn linear_track_color(
self,
linear_track_color: Color,
) -> ProgressIndicatorThemeData
pub fn linear_track_color( self, linear_track_color: Color, ) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(linearTrackColor:).
Sourcepub fn linear_min_height(
self,
linear_min_height: f64,
) -> ProgressIndicatorThemeData
pub fn linear_min_height( self, linear_min_height: f64, ) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(linearMinHeight:).
Sourcepub fn circular_track_color(
self,
circular_track_color: Color,
) -> ProgressIndicatorThemeData
pub fn circular_track_color( self, circular_track_color: Color, ) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(circularTrackColor:).
Sourcepub fn refresh_background_color(
self,
refresh_background_color: Color,
) -> ProgressIndicatorThemeData
pub fn refresh_background_color( self, refresh_background_color: Color, ) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(refreshBackgroundColor:).
Sourcepub fn border_radius(
self,
border_radius: impl Into<BorderRadiusGeometry>,
) -> ProgressIndicatorThemeData
pub fn border_radius( self, border_radius: impl Into<BorderRadiusGeometry>, ) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(borderRadius:).
Sourcepub fn stop_indicator_color(
self,
stop_indicator_color: Color,
) -> ProgressIndicatorThemeData
pub fn stop_indicator_color( self, stop_indicator_color: Color, ) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(stopIndicatorColor:).
Sourcepub fn stop_indicator_radius(
self,
stop_indicator_radius: f64,
) -> ProgressIndicatorThemeData
pub fn stop_indicator_radius( self, stop_indicator_radius: f64, ) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(stopIndicatorRadius:).
Sourcepub fn stroke_width(self, stroke_width: f64) -> ProgressIndicatorThemeData
pub fn stroke_width(self, stroke_width: f64) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(strokeWidth:).
Sourcepub fn stroke_align(self, stroke_align: f64) -> ProgressIndicatorThemeData
pub fn stroke_align(self, stroke_align: f64) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(strokeAlign:).
Sourcepub fn stroke_cap(self, stroke_cap: StrokeCap) -> ProgressIndicatorThemeData
pub fn stroke_cap(self, stroke_cap: StrokeCap) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(strokeCap:).
Sourcepub fn constraints(
self,
constraints: BoxConstraints,
) -> ProgressIndicatorThemeData
pub fn constraints( self, constraints: BoxConstraints, ) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(constraints:).
Sourcepub fn track_gap(self, track_gap: f64) -> ProgressIndicatorThemeData
pub fn track_gap(self, track_gap: f64) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(trackGap:).
Sourcepub fn circular_track_padding(
self,
circular_track_padding: impl Into<EdgeInsetsGeometry>,
) -> ProgressIndicatorThemeData
pub fn circular_track_padding( self, circular_track_padding: impl Into<EdgeInsetsGeometry>, ) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(circularTrackPadding:).
Sourcepub fn year2023(self, year2023: bool) -> ProgressIndicatorThemeData
👎Deprecated: Set this flag to false to opt into the 2024 progress indicator appearance. Defaults to true. In the future, this flag will default to false. Use ProgressIndicatorThemeData to customize individual properties. This feature was deprecated after v3.27.0-0.2.pre.
pub fn year2023(self, year2023: bool) -> ProgressIndicatorThemeData
Set this flag to false to opt into the 2024 progress indicator appearance. Defaults to true. In the future, this flag will default to false. Use ProgressIndicatorThemeData to customize individual properties. This feature was deprecated after v3.27.0-0.2.pre.
Dart ProgressIndicatorThemeData(year2023:).
Sourcepub fn controller(
self,
controller: Ref<AnimationController>,
) -> ProgressIndicatorThemeData
pub fn controller( self, controller: Ref<AnimationController>, ) -> ProgressIndicatorThemeData
Dart ProgressIndicatorThemeData(controller:).
Sourcepub fn copy_with(&self) -> ProgressIndicatorThemeData
pub fn copy_with(&self) -> ProgressIndicatorThemeData
Creates a copy of this object but with the given fields replaced with the new values.
Dart’s named arguments are the fluent setters on the copy
(data.copy_with().stroke_width(8.0)).
Sourcepub fn lerp(
a: Option<&ProgressIndicatorThemeData>,
b: Option<&ProgressIndicatorThemeData>,
t: f64,
) -> Option<ProgressIndicatorThemeData>
pub fn lerp( a: Option<&ProgressIndicatorThemeData>, b: Option<&ProgressIndicatorThemeData>, t: f64, ) -> Option<ProgressIndicatorThemeData>
Linearly interpolate between two progress indicator themes.
If both arguments are null, then null is returned.
Trait Implementations§
Source§impl Clone for ProgressIndicatorThemeData
impl Clone for ProgressIndicatorThemeData
Source§impl Debug for ProgressIndicatorThemeData
impl Debug for ProgressIndicatorThemeData
Source§impl Default for ProgressIndicatorThemeData
impl Default for ProgressIndicatorThemeData
Source§impl Diagnosticable for ProgressIndicatorThemeData
impl Diagnosticable for ProgressIndicatorThemeData
Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Object.runtimeType as diagnostics print it: the last segment of
the Rust type path, without generic arguments.Source§fn identity_hash(&self) -> u64
fn identity_hash(&self) -> u64
Object.hashCode as diagnostics print it: the object’s address.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Source§fn to_diagnostics_node(&self) -> DiagnosticableNode
fn to_diagnostics_node(&self) -> DiagnosticableNode
DiagnosticsNode::to_string_deep.Source§fn to_diagnostics_node_with(
&self,
name: Option<String>,
style: Option<DiagnosticsTreeStyle>,
) -> DiagnosticableNode
fn to_diagnostics_node_with( &self, name: Option<String>, style: Option<DiagnosticsTreeStyle>, ) -> DiagnosticableNode
toDiagnosticsNode(name:, style:).Source§fn to_string(&self) -> String
fn to_string(&self) -> String
toString: a single-line description with properties and no
children. Read moreSource§fn to_string_at(&self, min_level: DiagnosticLevel) -> String
fn to_string_at(&self, min_level: DiagnosticLevel) -> String
toString(minLevel:).Source§impl Display for ProgressIndicatorThemeData
impl Display for ProgressIndicatorThemeData
Source§impl ProgressIndicatorThemeDataGetters for ProgressIndicatorThemeData
impl ProgressIndicatorThemeDataGetters for ProgressIndicatorThemeData
Source§fn progress_indicator_theme_data(&self) -> &ProgressIndicatorThemeData
fn progress_indicator_theme_data(&self) -> &ProgressIndicatorThemeData
super(...)
arguments a defaults struct keeps.Source§fn linear_track_color(&self, app: &mut App) -> Option<Color>
fn linear_track_color(&self, app: &mut App) -> Option<Color>
linear_track_color getter.Source§fn circular_track_color(&self, app: &mut App) -> Option<Color>
fn circular_track_color(&self, app: &mut App) -> Option<Color>
circular_track_color getter.Source§fn refresh_background_color(&self, app: &mut App) -> Option<Color>
fn refresh_background_color(&self, app: &mut App) -> Option<Color>
refresh_background_color getter.Source§fn border_radius(&self, app: &mut App) -> Option<BorderRadiusGeometry>
fn border_radius(&self, app: &mut App) -> Option<BorderRadiusGeometry>
border_radius getter.Source§fn stop_indicator_color(&self, app: &mut App) -> Option<Color>
fn stop_indicator_color(&self, app: &mut App) -> Option<Color>
stop_indicator_color getter.Source§fn stop_indicator_radius(&self, app: &mut App) -> Option<f64>
fn stop_indicator_radius(&self, app: &mut App) -> Option<f64>
stop_indicator_radius getter.Source§fn constraints(&self, app: &mut App) -> Option<BoxConstraints>
fn constraints(&self, app: &mut App) -> Option<BoxConstraints>
constraints getter.Source§fn circular_track_padding(&self, app: &mut App) -> Option<EdgeInsetsGeometry>
fn circular_track_padding(&self, app: &mut App) -> Option<EdgeInsetsGeometry>
circular_track_padding getter.Source§fn controller(&self, app: &mut App) -> Option<Ref<AnimationController>>
fn controller(&self, app: &mut App) -> Option<Ref<AnimationController>>
controller getter.Source§fn copy_with(&self, app: &mut App) -> ProgressIndicatorThemeData
fn copy_with(&self, app: &mut App) -> ProgressIndicatorThemeData
copyWith() with no arguments: a plain value holding what every getter
answers, for the caller’s setters to change.