Commit 41c3ede
Lukas Gundermann
refactor: Introduce
This commit introduces a new `ButtonThemes` widget to centralize component theme overrides, following the pattern of `CardThemes` and `ContainerThemes`.
### Key Changes:
* **`lib/screens/widgets/overrides/button_themes.dart`**:
* A new `ButtonThemes` widget is created. It wraps its child in a `ComponentTheme` to provide custom styling for buttons, specifically targeting `SecondaryButtonTheme`.
* **`lib/screens/widgets/layouts/override_theme_layout.dart`**:
* The `OverrideThemeLayout` is updated to wrap its content with the new `ButtonThemes` widget, ensuring that custom button styles are applied consistently across the application.ButtonThemes for component styling1 parent 6c932de commit 41c3ede
2 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments