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.
- 🚀 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 🟢
uv add expand-fab- Python
3.12 - Flet
0.80.0
Warning
>= 3.12 dan Flet 0.80.0.
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: ignoreI hope this project is useful 🥰
