the Iconoir library, wrapped for Flet.
Project description
flet iconoir
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", # or "solid" !
icon_color=ft.colors.PRIMARY, # default
**kwargs, # passed to the flet.Image this thing returns!
)
)
also adds the IconoirIconButton, which is a class with more parameters.
page.add(
IconoirIconButton(
page=page, # reference to the page this button will be on
icon_name="settings",
icon_set="regular",
on_click=lambda: print("clicked!"), # defaults to None
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, # for when circular is False
)
)
quick, dirty, simple, hopefully helpful. find me on github and reach out if you have questions. have a day!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flet_iconoir-0.3.0.tar.gz
(255.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
flet_iconoir-0.3.0-py3-none-any.whl
(829.4 kB
view details)
File details
Details for the file flet_iconoir-0.3.0.tar.gz.
File metadata
- Download URL: flet_iconoir-0.3.0.tar.gz
- Upload date:
- Size: 255.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad7a92d157347472260c211630bd6378c5dfc46f44efad528f2e721f97f8b79a
|
|
| MD5 |
2f75944456278ef136cf252e61f368ac
|
|
| BLAKE2b-256 |
09ad814d61b79dd0f6884912fb8da2ee3facb1b3ff793a448c2c66ef13de9ea2
|
File details
Details for the file flet_iconoir-0.3.0-py3-none-any.whl.
File metadata
- Download URL: flet_iconoir-0.3.0-py3-none-any.whl
- Upload date:
- Size: 829.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10f3fab58e97fa7af8396f2552329ae97aff88b34b2c04a7d0d00f9b1ed74ee6
|
|
| MD5 |
efad4b4def86a295c0e055f9228aefcb
|
|
| BLAKE2b-256 |
1424f52b532b57bc8387f37a6a1b3c122be0b2467b14a9f3f0b5d5bae4143af0
|