Skip to main content

You can create a floating action button that can be expanded.

Project description

🚀 EXPAND FAB

PyPI - Downloads PyPI - Version

en_translate

expand-fab adalah implementasi Expandable Floating Action Button (FAB) untuk Flet, Library ini memungkinkan kamu membuat Floating Action Button dengan banyak aksi (speed dial), lengkap dengan animasi, overlay, label, dan event handler — langsung dari Python.


✨ Fitur Utama

  • 🚀 Expandable / Speed Dial FAB
  • ➕ Support multiple child actions
  • 🎨 Icon & active icon (atau custom widget)
  • 🏷️ Label & custom label widget
  • 🎬 Animasi & curve configurable
  • 🔌 Terintegrasi langsung dengan Flet custom control
  • 💙 API simpel & terasa “Flutter-like”
  • 🖥️ Support multi-platform:
    • Android 🟢
    • Linux 🟢
    • Windows (untested)
    • macOS (untested)
    • Web 🟢

📦 Instalasi

uv add expand-fab

🤖 Requirements

  • Python 3.12
  • Flet 0.80.0

[!WARNING] ⚠️ Library ini hanya kompatibel dengan Python >= 3.12 dan Flet 0.80.0.

🚀 Contoh Penggunaan

[!NOTE] Make sure to build your project first before running it. Why? Because Flet needs to register the fonts into the Flutter dependencies beforehand.

def fab_open(e):
  print(e.data)

def fab_child_tap(e):
  print(e.data)

page.floating_action_button = ef.FloatingActionButton(
    icon=ft.Icons.ADD,
    active_icon=ft.Icons.CLOSE,
    children=[
        ef.FabChild(
          child=ft.Icons.BOOK,
          label="Book",
          on_tap=fab_child_tap,
        ),
        ef.FabChild(
          child=ft.Icons.MEDIATION,
          label="Mediation",
          on_tap=fab_child_tap,
        ),
    ],
    on_open=fab_open,
)  # type: ignore

🖼️ Screen Shoot

image

I hope this project is useful 🥰

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

expand_fab-0.1.1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

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

expand_fab-0.1.1-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file expand_fab-0.1.1.tar.gz.

File metadata

  • Download URL: expand_fab-0.1.1.tar.gz
  • Upload date:
  • Size: 14.4 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 expand_fab-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fa0eeb5ee261714fa73b4b1aa6ca8a1c5c859cc8f61dfa80fe8d1652503c179a
MD5 b2db457fc27bb247897f5c46406f85fb
BLAKE2b-256 e3f208168c67dc0e860106136f160b43c56cf897794cf10ffa831e7794618037

See more details on using hashes here.

File details

Details for the file expand_fab-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: expand_fab-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.7 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 expand_fab-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54df90720c23aa204c11b8cede2ac97986a3e749d08dc6f318e926d4c2e8fa8d
MD5 3919880a31f9e8b6c9d56e2db119a427
BLAKE2b-256 48e5cd58bc26f50d75966f7482f7cc064aede9f6fe6100f38f08fcc69da06004

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