InfoBadge
A Fluent info badge: a small colored dot or count that draws attention to something, such as new items.
Example:
fluent.InfoBadge("5")
fluent.InfoBadge(severity=fluent.InfoBarSeverity.ERROR) # a dot

Inherits: LayoutControl
Example
Fluent InfoBadge
import flet_fluent_ui as fluent
import flet as ft
def main(page: ft.Page):
page.title = "Fluent InfoBadge"
def mark_read(e: ft.Event[fluent.Button]):
unread.visible = False
status.value = "All caught up"
unread = fluent.InfoBadge("5")
status = ft.Text("5 unread messages")
page.add(
ft.SafeArea(
content=ft.Column(
controls=[
ft.Row(
controls=[ft.Text("Inbox"), unread],
),
ft.Row(
controls=[
ft.Text("Updates"),
fluent.InfoBadge(severity=fluent.InfoBarSeverity.ERROR),
],
),
fluent.Button("Mark all as read", on_click=mark_read),
status,
],
)
)
)
if __name__ == "__main__":
ft.run(main)

Properties
bgcolorclass-attributeinstance-attribute
bgcolor: ColorValue | None = NoneThe color of the badge, overriding severity.
contentclass-attributeinstance-attribute
content: StrOrControl | None = NoneThe text or control in the badge, usually a count.
If None, the badge is a small dot.
severityclass-attributeinstance-attribute
severity: InfoBarSeverity = InfoBarSeverity.INFOThe color of the badge: the accent color for
INFO, or the attention, success or
critical color.