Open
Description
Other breaking changes
- Alignment: will have to use
ft.Alignment.center()
;ft.alignment.center
will not work - Control:
key
renamed toscroll_key
- ScrollableControl:
on_scroll_interval
renamed toscroll_interval
- Animation: instead of
ft.animation.Animation
useft.Animation
- Tabs: instead of
text: OptionalString
andtab_content: Optional[Control]
uselabel: Optional[StrOrControl])
- Pagelet:
bottom_app_bar
renamed tobottom_appbar
-
page.client_storage
changed topage.shared_preferences
. - Dialogs:
page.show_dialog(dialog_name)
instead ofpage.open(dialog_name)
; `page.pop_dialog() to close dialog - NavigationDrawer:
position
property instead ofpage.drawer
andpage.end_drawer
- All buttons: no
text
property, usecontent
instead - NavigationRailDesctination: no
label_content
property, uselabel
instead - SafeArea.left, .top, .right, .bottom to SafeArea.avoid_intrusions_left, .avoid_intrusions_top, .avoid_intrusions_right, .avoid_intrusions_bottom.
- Badge: use
label
instead oftext
- Padding, Margin: should have named, not positional arguments. For example, instead of
ft.Padding.symmetric(0, 10)
should beft.Padding(vertical = 0, horizontal = 10)
- SegmentedButton:
selected: List[str]
instead of Optional[Set]. Example:selected=["1", "4"]
instead ofselected={"1", "4"}
. TODO: support sets in flet V1 - CupertinoActionSheetAction, CupertinoDialogAction, CupertinoContextMenuAction:
default
instead ofis_default_action
;destructive
instead ofis_destructive_action
-
ft.app(target=main)
should be changed toft.run(main)
orft.run(main=main)
. -
FilePicker
is a service now and must be added topage.services
to work. Also, it provides only async methods to open dialogs which return results right away -no "on_result" event anymore. - DragTarget.on_will_accept is of
DragWillAcceptEvent
type withaccept: bool
field. Usee.accept
instead ofe.data
. DragTarget.on_leave is ofDragTargetLeaveEvent
type withsrc_id
field. Usee.src_id
instead ofe.data
.
Metadata
Metadata
Assignees
Type
Projects
Status
🏗 In progress