Skip to main content

ProgressIndicatorThemeData

Struct ProgressIndicatorThemeData 

Source
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, an InheritedWidget that propagates the theme down its subtree.
  • ThemeData::progress_indicator_theme, which describes the defaults for any progress indicators as part of the application’s ThemeData.

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>
👎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.

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

Source

pub fn new() -> ProgressIndicatorThemeData

Creates the set of properties used to configure ProgressIndicator widgets.

Source

pub fn color(self, color: Color) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(color:).

Source

pub fn linear_track_color( self, linear_track_color: Color, ) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(linearTrackColor:).

Source

pub fn linear_min_height( self, linear_min_height: f64, ) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(linearMinHeight:).

Source

pub fn circular_track_color( self, circular_track_color: Color, ) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(circularTrackColor:).

Source

pub fn refresh_background_color( self, refresh_background_color: Color, ) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(refreshBackgroundColor:).

Source

pub fn border_radius( self, border_radius: impl Into<BorderRadiusGeometry>, ) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(borderRadius:).

Source

pub fn stop_indicator_color( self, stop_indicator_color: Color, ) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(stopIndicatorColor:).

Source

pub fn stop_indicator_radius( self, stop_indicator_radius: f64, ) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(stopIndicatorRadius:).

Source

pub fn stroke_width(self, stroke_width: f64) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(strokeWidth:).

Source

pub fn stroke_align(self, stroke_align: f64) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(strokeAlign:).

Source

pub fn stroke_cap(self, stroke_cap: StrokeCap) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(strokeCap:).

Source

pub fn constraints( self, constraints: BoxConstraints, ) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(constraints:).

Source

pub fn track_gap(self, track_gap: f64) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(trackGap:).

Source

pub fn circular_track_padding( self, circular_track_padding: impl Into<EdgeInsetsGeometry>, ) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(circularTrackPadding:).

Source

pub 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.

Dart ProgressIndicatorThemeData(year2023:).

Source

pub fn controller( self, controller: Ref<AnimationController>, ) -> ProgressIndicatorThemeData

Dart ProgressIndicatorThemeData(controller:).

Source

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)).

Source

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

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProgressIndicatorThemeData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ProgressIndicatorThemeData

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Diagnosticable for ProgressIndicatorThemeData

Source§

fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)

Add additional properties associated with the node.
Source§

fn type_name(&self) -> &'static str

Dart’s Object.runtimeType as diagnostics print it: the last segment of the Rust type path, without generic arguments.
Source§

fn identity_hash(&self) -> u64

Dart’s Object.hashCode as diagnostics print it: the object’s address.
Source§

fn to_string_short(&self) -> String

A brief description of this object, usually just the type and the hash.
Source§

fn to_diagnostics_node(&self) -> DiagnosticableNode

Returns a debug representation of the object used by debugging tools and by DiagnosticsNode::to_string_deep.
Source§

fn to_diagnostics_node_with( &self, name: Option<String>, style: Option<DiagnosticsTreeStyle>, ) -> DiagnosticableNode

Dart toDiagnosticsNode(name:, style:).
Source§

fn to_string(&self) -> String

Dart’s toString: a single-line description with properties and no children. Read more
Source§

fn to_string_at(&self, min_level: DiagnosticLevel) -> String

Dart’s toString(minLevel:).
Source§

impl Display for ProgressIndicatorThemeData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ProgressIndicatorThemeData

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl ProgressIndicatorThemeDataGetters for ProgressIndicatorThemeData

Source§

fn progress_indicator_theme_data(&self) -> &ProgressIndicatorThemeData

The fields Dart’s constructor sets: the struct itself, or the super(...) arguments a defaults struct keeps.
Source§

fn color(&self, app: &mut App) -> Option<Color>

Dart’s color getter.
Source§

fn linear_track_color(&self, app: &mut App) -> Option<Color>

Dart’s linear_track_color getter.
Source§

fn linear_min_height(&self, app: &mut App) -> Option<f64>

Dart’s linear_min_height getter.
Source§

fn circular_track_color(&self, app: &mut App) -> Option<Color>

Dart’s circular_track_color getter.
Source§

fn refresh_background_color(&self, app: &mut App) -> Option<Color>

Dart’s refresh_background_color getter.
Source§

fn border_radius(&self, app: &mut App) -> Option<BorderRadiusGeometry>

Dart’s border_radius getter.
Source§

fn stop_indicator_color(&self, app: &mut App) -> Option<Color>

Dart’s stop_indicator_color getter.
Source§

fn stop_indicator_radius(&self, app: &mut App) -> Option<f64>

Dart’s stop_indicator_radius getter.
Source§

fn stroke_width(&self, app: &mut App) -> Option<f64>

Dart’s stroke_width getter.
Source§

fn stroke_align(&self, app: &mut App) -> Option<f64>

Dart’s stroke_align getter.
Source§

fn stroke_cap(&self, app: &mut App) -> Option<StrokeCap>

Dart’s stroke_cap getter.
Source§

fn constraints(&self, app: &mut App) -> Option<BoxConstraints>

Dart’s constraints getter.
Source§

fn track_gap(&self, app: &mut App) -> Option<f64>

Dart’s track_gap getter.
Source§

fn circular_track_padding(&self, app: &mut App) -> Option<EdgeInsetsGeometry>

Dart’s circular_track_padding getter.
Source§

fn year2023(&self, app: &mut App) -> Option<bool>

Dart’s year2023 getter.
Source§

fn controller(&self, app: &mut App) -> Option<Ref<AnimationController>>

Dart’s controller getter.
Source§

fn copy_with(&self, app: &mut App) -> ProgressIndicatorThemeData

Dart’s copyWith() with no arguments: a plain value holding what every getter answers, for the caller’s setters to change.
Source§

impl StructuralPartialEq for ProgressIndicatorThemeData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>