Skip to main content

ProgressRing

A Fluent progress ring: a circular progress indicator.

Example:

fluent.ProgressRing(value=60)
ProgressRing
ProgressRing

Inherits: LayoutControl

Properties

  • bgcolor - The color of the track behind the filled part.
  • color - The color of the filled part.
  • stroke_width - The thickness of the ring.
  • value - The progress, from 0 to 100.

Example​

Fluent ProgressBar and ProgressRing​

Sourceplay_arrowTry Online
import flet_fluent_ui as fluent

import flet as ft


def main(page: ft.Page):
page.title = "Fluent ProgressBar and ProgressRing"

def advance(e: ft.Event[fluent.Button]):
value = (bar.value + 25) % 125
bar.value = value
ring.value = value
status.value = f"{value}% done"

bar = fluent.ProgressBar(value=25, width=300)
ring = fluent.ProgressRing(value=25)
status = ft.Text("25% done")

page.add(
ft.SafeArea(
content=ft.Column(
spacing=16,
controls=[
bar,
ring,
status,
fluent.Button("Advance", on_click=advance),
],
)
)
)


if __name__ == "__main__":
ft.run(main)
progress
Clicking Advance

Properties​

bgcolorclass-attributeinstance-attribute​

bgcolor: ColorValue | None = None

The color of the track behind the filled part.

colorclass-attributeinstance-attribute​

color: ColorValue | None = None

The color of the filled part.

If None, the accent color of the theme is used.

stroke_widthclass-attributeinstance-attribute​

stroke_width: Number = 4.5

The thickness of the ring.

valueclass-attributeinstance-attribute​

value: Number | None = None

The progress, from 0 to 100.

If None, the ring is indeterminate: it spins continuously to show that work is in progress without saying how much is done.