Skip to content

Commit

Permalink
For Flet Dropdown, flutter widget replaced with DropdownMenu (#4885)
Browse files Browse the repository at this point in the history
* Create dropdownmenu.dart

* dropdownMenu properties

* max_menu_height

* inputDecorationTheme

* icon

* suffix and icon

* editable, suffix_icon

* suffix_icon

* deprecated suffix

* text_style

* trailing_icon, selected_trailing_icon

* Update dropdown_menu.py

* select_icon

* deprecations

* label, label_style, deprecations

* error_text

* error_style

* icon deprecated

* border

* border properties

* helper text and style

* text_size

* content_padding

* deprecated properties

* deprecated properties

* text_align

* elevation

* item_height deprecated

* enable_filter, enable_search

* cleanup

* cleanup

* DropdownOption alias for dropdown.Option

* renamed to DropdownOld in python

* renamed to dropdownOld in dart

* renamed DropdownMenu to Dropdown in python

* renamed in dart

* renamed DropdownMenu to Dropdown in dart

* renamed options control name, fixed test

* cleanup

* focus method for dropdown

* autofocus

* Update dropdown.dart

* fixed editable property

* dropdownm2 in dart

* DropdownM2 in Python

* Remove comments

---------

Co-authored-by: Feodor Fitsner <[email protected]>
  • Loading branch information
InesaFitsner and FeodorFitsner authored Feb 19, 2025
1 parent 6636250 commit 134b993
Show file tree
Hide file tree
Showing 7 changed files with 1,529 additions and 566 deletions.
10 changes: 10 additions & 0 deletions packages/flet/lib/src/controls/create_control.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import 'divider.dart';
import 'drag_target.dart';
import 'draggable.dart';
import 'dropdown.dart';
import 'dropdownm2.dart';
import 'elevated_button.dart';
import 'error.dart';
import 'expansion_panel.dart';
Expand Down Expand Up @@ -851,6 +852,15 @@ Widget createWidget(
parentDisabled: parentDisabled,
parentAdaptive: parentAdaptive,
backend: backend);
case "dropdownm2":
return DropdownM2Control(
key: key,
parent: parent,
control: controlView.control,
children: controlView.children,
parentDisabled: parentDisabled,
parentAdaptive: parentAdaptive,
backend: backend);
case "snackbar":
return SnackBarControl(
parent: parent,
Expand Down
Loading

0 comments on commit 134b993

Please sign in to comment.