This library can make it easier for you if you want to display images smoothly.
Project description
[!Note] Documentation is currently being prepared. Please wait.
How to use
import flet as ft
from flet_blurhash import BlurHashOptimizationMode, FletBlurHash
def main(page: ft.Page):
page.vertical_alignment = ft.MainAxisAlignment.CENTER
page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
page.window.always_on_top = True
def display(e):
print("display: ", e.data)
page.add(
ft.Container(
height=400,
width=400,
content=FletBlurHash(
hash="LKO2:N%2Tw=w]~RBVZRi};RPxuwH",
image="https://fastly.picsum.photos/id/21/3008/2008.jpg?hmac=T8DSVNvP-QldCew7WD4jj_S3mWwxZPqdF0CNPksSko4",
duration=ft.Duration(seconds=3),
on_display=display,
curve=ft.AnimationCurve.BOUNCE_IN,
optimization_mode=BlurHashOptimizationMode.APPROXIMATION,
),
)
)
ft.run(main)
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_blurhash-0.1.0.tar.gz
(11.0 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
File details
Details for the file flet_blurhash-0.1.0.tar.gz.
File metadata
- Download URL: flet_blurhash-0.1.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.2","id":"zara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbf378318ef574b8b04a8e70b38f642d5e5f99eb793335996ad477b5e80c9985
|
|
| MD5 |
57df6040934654450fde78e40f95b92e
|
|
| BLAKE2b-256 |
a011f837017efb169c09a3ddaaeff78639ce0884101aac199bb6a12c97b391a1
|
File details
Details for the file flet_blurhash-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flet_blurhash-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.2","id":"zara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d4dca0a6b2a20f47c67370f5d972645ab4b5028d4969cc5fd29784a97322ef6
|
|
| MD5 |
62343df42df99b0a36a702f10792e6af
|
|
| BLAKE2b-256 |
a5fc3fcb9671ae7dd2219452bee36a670d1e55f3a8c36c2232b2565b9bd0de88
|