Closed ndonkoHenri closed 4 weeks ago
This pull request exposes more properties in various controls, enhancing their customization capabilities. It also includes some refactoring and code improvements across multiple files.
classDiagram
class TextField {
+Optional[bool] enable_interactive_selection
+Optional[bool] enable_ime_personalized_learning
+Optional[bool] can_request_focus
+Optional[bool] ignore_pointers
+Optional[bool] enable_scribble
+Optional[bool] animate_cursor_opacity
+Optional[bool] always_call_on_tap
+PaddingValue scroll_padding
+Optional[ClipBehavior] clip_behavior
+Optional[Brightness] keyboard_brightness
+Optional[MouseCursor] mouse_cursor
+Optional[StrutStyle] strut_style
+OptionalControlEventCallable on_click
+Optional[Control] helper
+Optional[Control] error
+Union[None, str, Control] prefix_icon
+Union[None, str, Control] suffix_icon
+Optional[str] focus_color
+Optional[bool] align_label_with_hint
+DurationValue hint_fade_duration
+Optional[int] hint_max_lines
+Optional[int] helper_max_lines
+Optional[int] error_max_lines
+Optional[str] prefix_icon_color
+Optional[BoxConstraints] prefix_icon_size_constraints
+Optional[str] suffix_icon_color
+Optional[BoxConstraints] suffix_icon_size_constraints
}
classDiagram
class Text {
+Optional[bool] show_selection_cursor
+Optional[bool] enable_interactive_selection
+OptionalNumber selection_cursor_width
+OptionalNumber selection_cursor_height
+Optional[str] selection_cursor_color
+OptionalControlEventCallable on_tap
+OptionalEventCallable[TextSelectionChangeEvent] on_selection_change
}
classDiagram
class Icon {
+Union[BoxShadow, List[BoxShadow], None] shadows
+OptionalNumber fill
+Optional[bool] apply_text_scaling
+OptionalNumber grade
+OptionalNumber weight
+OptionalNumber optical_size
}
classDiagram
class PopupMenuButton {
+PaddingValue menu_padding
+Optional[ButtonStyle] style
+Optional[AnimationStyle] popup_animation_style
+Optional[BoxConstraints] size_constraints
+OptionalControlEventCallable on_select
}
classDiagram
class GestureDetector {
+Optional[bool] exclude_from_semantics
+Optional[bool] trackpad_scroll_causes_scale
+Optional[Set[PointerDeviceType]] allowed_devices
}
Change | Details | Files |
---|---|---|
Enhanced TextField control with additional properties and functionality |
|
sdk/python/packages/flet-core/src/flet_core/textfield.py packages/flet/lib/src/controls/textfield.dart |
Expanded FormFieldControl with new attributes and methods |
|
sdk/python/packages/flet-core/src/flet_core/form_field_control.py packages/flet/lib/src/utils/form_field.dart |
Enhanced Icon control with additional customization options |
|
sdk/python/packages/flet-core/src/flet_core/icon.py packages/flet/lib/src/controls/icon.dart |
Refactored and improved various controls and utilities |
|
sdk/python/packages/flet-core/src/flet_core/popup_menu_button.py packages/flet/lib/src/controls/popup_menu_button.dart sdk/python/packages/flet-core/src/flet_core/gesture_detector.py packages/flet/lib/src/controls/gesture_detector.dart sdk/python/packages/flet-core/src/flet_core/dropdown.py packages/flet/lib/src/controls/dropdown.dart sdk/python/packages/flet-core/src/flet_core/navigation_bar.py packages/flet/lib/src/controls/navigation_bar.dart sdk/python/packages/flet-core/src/flet_core/navigation_drawer.py packages/flet/lib/src/controls/navigation_drawer.dart packages/flet/lib/src/utils/transforms.dart packages/flet/lib/src/utils/box.dart packages/flet/lib/src/utils/others.dart |
Please resolve conflicts.
Could you look at the conflict please?
Summary by Sourcery
Enhance the Flet core library by introducing new properties across multiple controls, including TextField, Text, Icon, PopupMenuButton, GestureDetector, Draggable, and NavigationBarDestination, to provide more customization and interaction options. Refactor existing functions and controls to improve flexibility, error handling, and support for adaptive design.
New Features:
Enhancements: