Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flet_blurhash-0.1.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

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

Hashes for flet_blurhash-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fbf378318ef574b8b04a8e70b38f642d5e5f99eb793335996ad477b5e80c9985
MD5 57df6040934654450fde78e40f95b92e
BLAKE2b-256 a011f837017efb169c09a3ddaaeff78639ce0884101aac199bb6a12c97b391a1

See more details on using hashes here.

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

Hashes for flet_blurhash-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d4dca0a6b2a20f47c67370f5d972645ab4b5028d4969cc5fd29784a97322ef6
MD5 62343df42df99b0a36a702f10792e6af
BLAKE2b-256 a5fc3fcb9671ae7dd2219452bee36a670d1e55f3a8c36c2232b2565b9bd0de88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page