flet iconoir
the Iconoir library, wrapped for Flet.
usage
adds a new IconoirIcon
function. use it like this with a name from the Iconoir list!
page.add(
IconoirIcon(
icon_name="wifi",
icon_set="regular",
icon_color=ft.colors.PRIMARY,
**kwargs,
)
)
also adds the IconoirIconButton
, which is a class with more parameters.
page.add(
IconoirIconButton(
page=page,
icon_name="settings",
icon_set="regular",
on_click=lambda: print("clicked!"),
icon_size=16,
icon_color=ft.colors.ON_PRIMARY,
hover_color=ft.colors.PRIMARY_CONTAINER,
bg_color=ft.colors.ON_PRIMARY_CONTAINER,
padding=8,
circular=True,
border_radius=8,
)
)
quick, dirty, simple, hopefully helpful. find me on github and reach out if you have questions. have a day!