Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controls Enhancement #2882

Merged
merged 106 commits into from
Apr 1, 2024
Merged

Controls Enhancement #2882

merged 106 commits into from
Apr 1, 2024

Conversation

ndonkoHenri
Copy link
Collaborator

@ndonkoHenri ndonkoHenri commented Mar 14, 2024

Added Properties:

  • AppBar: elevation_on_scroll, exclude_header_semantics, force_material_transparency, is_secondary, shadow_color, surface_tint_color, clip_behavior, title_spacing, toolbar_opacity, title_text_style, toolbar_text_style, shape
  • AlertDialog: action_button_padding, clip_behavior, icon_padding, shadow_color, surface_tint_color
  • Banner: content_text_style, margin, elevation, divider_color, shadow_color, surface_tint_color, on_visible
  • CupertinoListTile: leading_size, leading_to_title
  • CupertinoSegmentedButton: click_color
  • CupertinoSwitch:
    on_label_color, off_label_color
  • CupertinoTimerPicker: item_extent
  • Chip: surface_tint_color, color, click_elevation, clip_behavior, visual_density, border_side
  • Divider: leading_indent, trailing_indent
  • ExpansionTile: dense, enable_feedback, visual_density
  • Card: clip_behavior, is_semantic_container, show_border_on_foreground, variant
  • Checkbox: border_side, semantics_label, shape, splash_radius, is_error, visual_density, mouse_cursor
  • CircleAvatar: on_image_error
  • DataTable: clip_behavior
  • DatePicker: on_entry_mode_change
  • Draggable: on_drag_complete, on_drag_start
  • DragTarget: on_move
  • Dropdown: fill_color, hint_content, icon_content, elevation, item_height, max_menu_height, icon_size, enable_feedback, padding, icon_enabled_color, icon_disabled_color, on_click
  • ElevatedButton: clip_behavior
  • FloatingActionButton: clip_behavior, enable_feedback, focus_color, foreground_color, disabled_elevation, elevation, focus_elevation, highlight_elevation, hover_elevation, mouse_cursor
  • GridView: cache_extent, clip_behavior, semantic_child_count
  • IconButton: alignment, disabled_color, focus_color, enable_feedback, hover_color, padding, splash_color, splash_radius, focus_color, mouse_cursor, visual_density
  • Image: exclude_from_semantics, filter_quality
  • ListTile: enable_feedback, horizontal_spacing, min_leading_width, min_vertical_padding, selected_color, selected_tile_color, style, title_alignment, icon_color, text_color, shape, visual_density, mouse_cursor, title_text_style, subtitle_text_style, leading_and_trailing_text_style
  • ListView: cache_extent, clip_behavior, semantic_child_count
  • NavigationBar: animation_duration, overlay_color
  • NavigationDrawerDestination: bgcolor
  • NavigationDestination: bgcolor
  • NavigationRail: selected_label_text_style, unselected_label_text_style
  • NavigationRailDestination: indicator_color, indicator_shape
  • Option: alignment, on_click
  • OutlinedButton: clip_behavior
  • Page: locale_configuration
  • PopupMenuItem: height, padding, mouse_cursor
  • PopupMenuButton: bgcolor, clip_behavior, elevation, enable_feedback, icon_color, shadow_color, surface_tint_color, icon_size, padding, splash_radius, shape, on_open, on_cancel
  • ProgressBar: border_radius, semantics_label, semantics_value
  • ProgressRing: semantics_label, semantics_value, stroke_cap, stroke_align
  • Radio: focus_color, hover_color, overlay_color, splash_radius, toggleable, visual_density, mouse_cursor
  • SearchBar: keyboard_type, view_surface_tint_color, autofocus
  • SelectionArea: on_change
  • Slider: interaction, overlay_color, mouse_cursor, secondary_track_value, secondary_active_color
  • Stack: alignment, fit
  • SnackBar: clip_behavior, shape, on_visible, action_overflow_threshold
  • Switch: hover_color, splash_radius, overlay_color, track_outline_color, mouse_cursor
  • Tabs: divider_height, enable_feedback, indicator_thickness, is_secondary, mouse_cursor, clip_behavior
  • TextField: fill_color, hover_color
  • TimePicker: orientation, on_entry_mode_change
  • Tooltip: enable_tap_to_dismiss, exclude_from_semantics
  • VerticalDivider: leading_indent, trailing_indent

…_vertical_padding, selected_color, selected_tile_color, splash_color, style
@FeodorFitsner FeodorFitsner merged commit 556f492 into main Apr 1, 2024
2 checks passed
@FeodorFitsner FeodorFitsner deleted the controls-enhancement branch April 5, 2024 19:00
@ndonkoHenri ndonkoHenri mentioned this pull request Apr 16, 2024
1 task
zrr1999 pushed a commit to zrr1999/flet that referenced this pull request Jul 17, 2024
* initial commit

* Pass data to Control.__init__
Fixes flet-dev#2826

* CircleAvatar: on_image_error

* Card: clip_behavior, is_semantic_container, show_border_on_foreground

* Checkbox: semantics_label, shape, splash_radius, border_side, is_error

* DragTarget: on_move, deprecated DragTargetAcceptEvent in favour of DragTargetEvent

* Draggable: on_drag_start, on_drag_end

* More types

* Divider: indent, end_indent

* Fix flet-dev#2839

* Stack: alignment, fit

* Divider: rename indent to leading_indent and end_indent to trailing_indent

* Draggable: rename on_drag_end to on_drag_complete

* Checkbox: rename border_side to border

* Revert "Checkbox: rename border_side to border"

This reverts commit b92ce30.

* Card: variant

* VerticalDivider: leading_indent, trailing_indent

* Tooltip: exclude_from_semantics, enable_tap_to_dismiss

* Reformat _set_attr calls

* TimePicker: orientation

* FAB - dart: colors, elevation, enableFeedback

* ProgressRing: stroke_cap, stroke_align, semantics_label, semantics_value

* ProgressBar: border_radius, semantics_label, semantics_value

* OutlinedButton: clip_behavior

* NavBar: animation_duration

* AlertDialog: action_button_padding, clip_behavior, icon_padding, shadow_color, surface_tint_color

* ListTile: enable_feedback, horizontal_spacing, min_leading_width, min_vertical_padding, selected_color, selected_tile_color, splash_color, style

* Image: exclude_from_semantics, filter_quality, semantics_label

* SelectionArea: on_change

* ListView: semantic_child_count, clipBehavior

* FAB: colors, elevations, enable_feedback, clip_behavior

* ElevatedButton: clip_behavior,

* SnackBar: clip_behavior, shape, on_visible

* Slider: interaction, overlay_color

* IconButton: alignment, disabled_color, enable_feedback, hover_color, padding

* Radio: focus_color, hover_color, overlay_color, splash_radius, toggleable, visual_density

* GridView: semantic_child_count, clipBehavior

* Tabs: divider_height, enable_feedback, indicator_thickness

* Cleanup + Code Reformat

* Fix CI: import enum

* Reformat: replace is_dataclass with isinstance

* add kwargs in run_task

* Tabs: secondary

* Fix CI: typing error

* Option: alignment, on_click

* Dropdown: hint_content, icon_content, elevation, item_height, max_menu_height, icon_size, enable_feedback, padding, icon_enabled_color, icon_disabled_color, on_click

* Cleanup

* PopupMenuButton: clip_behavior, splash_radius, elevation, enable_feedback, icon_size, surface_tint_color, shadow_color, bgcolor, icon_color, shape, padding

* Dropdown: remove dense getter and setter

* PopupMenuItem: padding, height

* Page: locale_configuration

* Card: rename NORMAL to ELEVATED

* CircleAvatar: rename foreground_image_url and background_image_url to *_src

* UrlTarget enum

* PopupMenuButton: reintroduce on_cancelled, but as deprecated

* Reformat: created control.attrColor to ease color parsing

* ListView+GridView: cache_extent

* AppBar: elevation_on_scroll, shadow_color, surface_tint_color, clip_behavior, force_material_transparency, is_secondary, title_spacing, exclude_header_semantics

* Reformat: avoid spamming warnings

* TextField: fill_color, hover_color

* Dropdown: fill_color

* Fix failing CI: omitted parenthesis

* Locale: script_code

* Locale: rename used_locale to default_locale

* CupertinoBottomSheet default values

* CupertinoBottomSheet: check the type of content control

* Locale: rename default_locale to current_locale :)

* TimePicker.value: avoid splitting None

* AlertDialog: alignment, icon_color, scrollable, content_text_style,  title_text_style, actions_overflow_button_spacing,

* AppBar: toolbar_opacity, title_text_style, toolbar_text_style,shape

* parseMouseCursor: defaultMouseCursor

* Checkbox: visual_density, mouse_cursor

* Banner: content_text_style, margin, elevation, divider_color, shadow_color, surface_tint_color, on_visible

* CupertinoListTile: leading_size, leading_to_title

* Chip: surface_tint_color, color, click_elevation, clip_behavior, visual_density, border_side

* CupertinoRadio: toggleable, focus_color

* CupertinoSegmentedButton: click_color

* CupertinoSwitch: on_label_color, off_label_color

* Switch: hover_color, splash_radius, overlay_color, track_outline_color,mouse_cursor

* Snackbar: action_overflow_threshold

* Tabs: is_secondary, mouseCursor, clipBehavior

* Slider: mouse_cursor, secondary_track_value, secondary_active_color

* PopupMenuItem: mouse_cursor

* NavigationDrawerDestination: bgcolor

* NavigationDestination: bgcolor

* NavigationBar: overlay_color

* CupertinoTimerPicker: item_extent

* ExpansionTile: dense, enable_feedback, visual_density

* SearchBar: keyboard_type, view_surface_tint_color, autofocus

* NavigationRail: (un)selected_label_text_style | Destination: indicator_color, indicator_shape

* IconButton: mouse_cursor, visual_density

* Radio: mouse_cursor

* FAB: mouse_cursor

* DataTable: clip_behavior

* DatePicker: on_entry_mode_change

* ListTile: title_alignment, icon_color, text_color, shape, visual_density, mouse_cursor, title_text_style, subtitle_text_style, leading_and_trailing_text_style

* TimePicker: on_entry_mode_change

* Cleanup

* Fix failing CI concerning circular import

* Cleanup

* Remove None from enums

* Updated rive package version

* Added Rive to CI

---------

Co-authored-by: Feodor Fitsner <feodor@appveyor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment