Skip to main content

linear_progress_indicator

Function linear_progress_indicator 

Source
pub fn linear_progress_indicator() -> LinearProgressIndicatorBuilder
Expand description

§linear_progress_indicator

Renders a Material Design progress indicator in a horizontal, linear form.

§Usage

Display completion state for determinate work, or show ongoing activity when the remaining duration is unknown.

§Parameters

  • progress — current progress in the range 0.0..=1.0; None renders the indeterminate indicator.
  • modifier — optional modifier chain for size and layout.
  • color — optional active indicator color.
  • track_color — optional inactive track color.
  • stroke_cap — optional stroke cap style.
  • gap_size — optional gap size between the active indicator and the track.
  • draw_stop_indicator — optional stop-indicator toggle.
  • accessibility_label — optional accessibility label.
  • accessibility_description — optional accessibility description.

§Examples

use tessera_components::progress::linear_progress_indicator;

linear_progress_indicator().progress(0.75);