Commit 7b38442
authored
* Replace ConstrainedControl with LayoutControl
Refactored all usages of ConstrainedControl to LayoutControl across control implementations. Introduced LayoutControl as the new wrapper for layout constraints, with ConstrainedControl now extending LayoutControl for backward compatibility. Updated documentation and example paths to reflect the new naming and organization.
* Refactor ElevatedButton to Button and update references
Replaces the ElevatedButton control with Button throughout the codebase, consolidating button logic into a single Button class. ElevatedButton is now a deprecated alias for Button. Updates all usages, tests, and control registration to use Button, simplifying the API and improving maintainability.
* Replace ElevatedButton with Button in examples
Updated all Python example files to use ft.Button instead of ft.ElevatedButton for consistency with the latest Flet API. This affects authentication, controls-gallery, routing-navigation, studio-gallery, desktop-window-manager, and other sample apps.
* Refactor calculator UI to use Colors and content
Replaces deprecated 'colors' import with 'Colors' and updates Button controls to use 'content' instead of 'text'. Also changes alignment to use MainAxisAlignment.END and updates class inheritance from UserControl to Container for improved compatibility with Flet API.
1 parent 3c01a4a commit 7b38442
328 files changed
Lines changed: 1521 additions & 1517 deletions
File tree
- packages/flet/lib/src
- controls
- utils
- sdk/python
- examples
- apps
- authentication
- controls-gallery/examples
- animations/animated_switcher
- buttons
- cupertinodialogaction
- elevatedbutton
- charts/linechart
- colors/controlcolors
- dialogs
- alertdialog
- banner
- bottomsheet
- cupertinoalertdialog
- datepicker
- snackbar
- timepicker
- input
- checkbox
- cupertinoradio
- dropdown
- radio
- switch
- textfield
- layout
- column
- container
- utility
- audio
- filepicker
- desktop-window-manager
- flet-animation
- greeter
- studio-gallery
- trolli/src
- controls
- alert_dialog
- animated_switcher
- app_bar
- banner
- bottom_sheet
- button
- media
- checkbox
- column
- container
- cupertino_button
- cupertino_radio
- date_picker
- dropdown_m2
- elevated_button
- file_picker
- gesture_detector
- haptic_feedback
- layout_control
- media
- page
- radio
- snack_bar
- switch
- text_field
- time_picker
- transparent_pointer
- types
- alignment
- blur
- margin
- padding
- cookbook
- tutorials
- calculator
- chat
- packages/flet
- docs
- archive
- contributing/extensions
- controls
- buttons
- cookbook
- publish/web/dynamic-website
- tutorials
- types
- integration_tests/controls
- golden/macos/button
- src/flet
- controls
- core
- canvas
- cupertino
- material
- utils
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
33 | 42 | | |
34 | 43 | | |
35 | 44 | | |
36 | | - | |
| 45 | + | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
0 commit comments