ProgressBar
A Fluent progress bar.
Example:
fluent.ProgressBar(value=60)

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 bar.value- The progress, from0to100.
Example
Fluent ProgressBar and ProgressRing
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)

Properties
bgcolorclass-attributeinstance-attribute
bgcolor: ColorValue | None = NoneThe color of the track behind the filled part.
colorclass-attributeinstance-attribute
color: ColorValue | None = NoneThe color of the filled part.
If None, the accent color of the theme is used.