-
Notifications
You must be signed in to change notification settings - Fork 600
Open
Labels
breaking changeWill disrupt existing functionalityWill disrupt existing functionality
Milestone
Description
Other breaking changes
Alignment: useft.Alignment.CENTER(and other Alignment constants) instead offt.alignment.center.scroll_to():keyrenamed toscroll_key; in control key should bekey=ft.ScrollKey(<value>)- ScrollableControl:
on_scroll_intervalrenamed toscroll_interval - Animation: instead of
ft.animation.Animationuseft.Animation - Tabs: instead of
text: OptionalStringandtab_content: Optional[Control]uselabel: Optional[StrOrControl]) - Pagelet:
bottom_app_barrenamed tobottom_appbar page.client_storagechanged topage.shared_preferences.- Dialogs:
page.show_dialog(dialog_name)instead ofpage.open(dialog_name); `page.pop_dialog() to close dialog - NavigationDrawer:
positionproperty instead ofpage.drawerandpage.end_drawer - All buttons: no
textproperty, usecontentinstead - NavigationRailDesctination: no
label_contentproperty, uselabelinstead - SafeArea.left, .top, .right, .bottom to SafeArea.avoid_intrusions_left, .avoid_intrusions_top, .avoid_intrusions_right, .avoid_intrusions_bottom.
- Badge: use
labelinstead 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:
defaultinstead ofis_default_action;destructiveinstead ofis_destructive_action ft.app(target=main)should be changed toft.run(main)orft.run(main=main).FilePickeris a service now and must be added topage.servicesto 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
DragWillAcceptEventtype withaccept: boolfield. Usee.acceptinstead ofe.data. DragTarget.on_leave is ofDragTargetLeaveEventtype withsrc_idfield. Usee.src_idinstead ofe.data. Page.on_resizedrenamed toPage.on_resize.Card.color->Card.bgcolor,Card.is_semantic_container->Card.semantic_containerCheckbox.is_error->Checkbox.error.Chip.click_elevation->Chip.press_elevationMarkdown.img_error_content->Markdown.image_error_content.Switch.label_style->Switch.label_text_style.Tabs.is_secondary->Tabs.secondary.BoxDecoration.shadow->BoxDecoration.shadows.canvas.Text.text->canvas.Text.value.- Remove _async suffix from all methods, remove fire-n-forget counterparts
Icon.name->Icon.icon.Dropdown.on_changeis now triggered when text entered in editable mode; a newon_selectevent is triggered when an item selected from the list.- Remove
primary_swatch(use color_scheme_seed),primary_color(use ColorScheme.primary),primary_color_dark,primary_color_light,shadow_color(use ColorScheme.shadow),divider_color(use in DividerTheme.color) fromTheme.
Metadata
Metadata
Assignees
Labels
breaking changeWill disrupt existing functionalityWill disrupt existing functionality
Type
Projects
Status
🏗 In progress