Skip to content

arief05652/expand-fab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 EXPAND FAB

PyPI - Downloads PyPI - Version

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 🥰

About

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

Resources

License

Stars

Watchers

Forks

Contributors