Closed ndonkoHenri closed 1 month ago
This pull request addresses an issue where the Switch
control's height
and width
properties were not being respected when a label
was set. The fix involves restructuring the widget tree to ensure proper sizing and layout of the Switch control with its label.
Change | Details | Files |
---|---|---|
Restructured the widget tree for the Switch control with label |
|
packages/flet/lib/src/controls/switch.dart |
Description
Fixes #3997
Continuation of https://github.com/flet-dev/flet/pull/3670
Test Code
Summary by Sourcery
Fix the issue where the
Switch
component'sheight
andwidth
properties were not respected when alabel
was set, ensuring proper layout and functionality.Bug Fixes:
Switch
component respects theheight
andwidth
properties when alabel
is set.