Skip to main content

circular_progress_indicator

Function circular_progress_indicator 

Source
pub fn circular_progress_indicator() -> CircularProgressIndicatorBuilder
Expand description

§circular_progress_indicator

Renders a Material Design progress indicator in a circular form.

§Usage

Show ongoing activity or a completion fraction for tasks such as loading, syncing, or background work.

§Parameters

  • progress — current progress in the range 0.0..=1.0; None renders the indeterminate indicator.
  • diameter — optional indicator diameter.
  • stroke_width — optional stroke width.
  • color — optional active indicator color.
  • track_color — optional track color.
  • stroke_cap — optional stroke cap style.
  • gap_size — optional gap size between the indicator and the track.
  • accessibility_label — optional accessibility label.
  • accessibility_description — optional accessibility description.

§Examples

use tessera_components::progress::circular_progress_indicator;

circular_progress_indicator().progress(0.6);