Commit ffa42d1
authored
refactor: Add Stac Theme and ThemeData classes to stac_core (#379)
* refactor: Move theme classes to Stac_core
* refactor: Update theme parsers and add missing docs.
* chore: Remove FVM configuration files
* refactor: Update StacTabBarThemeData parser to use TabBarThemeData and include in StacThemeParser
* chore: Remove .fvmrc file from stac_core package
* refactor: Change return type of parse method in StacAppBarThemeParser to non-nullable AppBarTheme
* refactor: Update theme parsers to return non-nullable types and improve documentation
* refactor: Remove unused StacRoundedRectangleBorder class and related files
* code formatting
* refactor: Clean up JSON serialization in widget classes for consistency
- Updated various widget classes to ensure consistent formatting in JSON serialization.
- Simplified null checks and improved readability across multiple files, including StacButton, StacCard, StacColumn, and others.
- Enhanced maintainability by standardizing the structure of child widget handling and property parsing.1 parent a4d7e02 commit ffa42d1
File tree
212 files changed
+5854
-23902
lines changed- examples/movie_app
- packages
- stac_core
- lib
- foundation
- text/stac_text_style
- theme
- stac_app_bar_theme
- stac_bottom_app_bar_theme
- stac_bottom_sheet_theme_data
- stac_button_theme_data
- stac_card_theme_data
- stac_checkbox_theme_data
- stac_chip_theme_data
- stac_color_scheme
- stac_date_picker_theme_data
- stac_dialog_theme_data
- stac_dialog_theme
- stac_divider_theme_data
- stac_drawer_theme_data
- stac_floating_action_button_theme_data
- stac_icon_theme_data
- stac_list_tile_theme_data
- stac_material_banner_theme_data
- stac_material_color
- stac_scrollbar_theme_data
- stac_snack_bar_theme_data
- stac_tab_bar_theme_data
- stac_text_theme
- stac_theme
- widgets/text
- stac
- lib
- src
- framework
- parsers
- actions
- stac_dialog_action
- stac_snack_bar
- foundation
- effects
- geometry
- theme
- ui_components
- theme
- stac_app_bar_theme
- stac_badge_theme_data
- stac_bottom_app_bar_theme
- stac_bottom_sheet_theme
- stac_button_theme_data
- stac_card_theme_data
- stac_checkbox_theme_data
- stac_chip_theme_data
- stac_color_scheme
- stac_date_picker_theme_data
- stac_dialog_theme
- stac_divider_theme_data
- stac_drawer_theme_data
- stac_floating_action_button_theme_data
- stac_icon_theme_data
- stac_list_tile_theme_data
- stac_material_banner_theme_data
- stac_material_color
- stac_scrollbar_theme_data
- stac_snack_bar_theme_data
- stac_tab_bar_theme_data
- stac_text_theme
- stac_theme
- widgets
- stac_alert_dialog
- stac_carousel_view
- stac_check_box
- stac_custom_scroll_view
- stac_double
- stac_dynamic_view
- stac_elevated_button
- stac_filled_button
- stac_form
- stac_gesture_detector
- stac_grid_view
- stac_hero
- stac_icon_button
- stac_list_view
- stac_outlined_button
- stac_page_view
- stac_positioned
- stac_refresh_indicator
- stac_rounded_rectangle_border
- stac_row
- stac_scaffold
- stac_set_value
- stac_single_child_scroll_view
- stac_tab_bar
- stac_table
- stac_text_button
- stac_text_field
- stac_text_form_field
- stac_text
- stac_visibility
- stac_wrap
- services
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
212 files changed
+5854
-23902
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 174 | | |
183 | 175 | | |
184 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 32 | + | |
| 33 | + | |
38 | 34 | | |
39 | 35 | | |
40 | 36 | | |
| |||
79 | 75 | | |
80 | 76 | | |
81 | 77 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 78 | + | |
86 | 79 | | |
87 | 80 | | |
88 | 81 | | |
| |||
139 | 132 | | |
140 | 133 | | |
141 | 134 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 135 | + | |
146 | 136 | | |
147 | 137 | | |
148 | 138 | | |
| |||
166 | 156 | | |
167 | 157 | | |
168 | 158 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 159 | + | |
174 | 160 | | |
175 | 161 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 38 | + | |
44 | 39 | | |
45 | 40 | | |
46 | 41 | | |
| |||
117 | 112 | | |
118 | 113 | | |
119 | 114 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 115 | + | |
124 | 116 | | |
125 | 117 | | |
126 | 118 | | |
| |||
212 | 204 | | |
213 | 205 | | |
214 | 206 | | |
215 | | - | |
216 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
217 | 212 | | |
218 | 213 | | |
219 | 214 | | |
220 | 215 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 216 | + | |
225 | 217 | | |
226 | 218 | | |
227 | 219 | | |
| |||
239 | 231 | | |
240 | 232 | | |
241 | 233 | | |
242 | | - | |
243 | | - | |
244 | | - | |
| 234 | + | |
245 | 235 | | |
246 | 236 | | |
247 | 237 | | |
| |||
391 | 381 | | |
392 | 382 | | |
393 | 383 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
| 384 | + | |
398 | 385 | | |
399 | 386 | | |
400 | 387 | | |
401 | 388 | | |
402 | 389 | | |
403 | 390 | | |
404 | | - | |
405 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
406 | 394 | | |
407 | 395 | | |
408 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 176 | + | |
180 | 177 | | |
181 | 178 | | |
182 | 179 | | |
| |||
318 | 315 | | |
319 | 316 | | |
320 | 317 | | |
321 | | - | |
322 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
323 | 321 | | |
324 | 322 | | |
325 | 323 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 29 | + | |
34 | 30 | | |
35 | 31 | | |
36 | 32 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 84 | + | |
89 | 85 | | |
90 | 86 | | |
91 | 87 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
0 commit comments