Skip to content

Commit 667a71c

Browse files
committed
fix(colorPicker): restore prefixIcon as deprecated for build compatibility
Removed in 7.5.27 but still referenced in downstream packages. Restored as @deprecated so consumers can migrate without breaking builds.
1 parent c79ff29 commit 667a71c

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 7.5.29
44

55
- Added `onFilteredCountChanged: void Function(int count)?` to `ThemedTable2<T>`. The callback fires after every filter-and-sort cycle (initial load, search, sort, `items` update) with the count of currently visible rows. Optional and `null` by default — fully backward-compatible.
6+
- Restored `prefixIcon` parameter in `ThemedColorPicker` as `@Deprecated`. The parameter was removed in 7.5.27 but is still referenced in downstream packages. It is now accepted (and ignored) to restore build compatibility while consumers migrate.
67

78
## 7.5.28
89

lib/src/inputs/src/pickers/general/color.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ class ThemedColorPicker extends StatefulWidget {
3030
/// [dense] is the state of the input being dense.
3131
final bool dense;
3232

33+
/// [prefixIcon] is the prefix icon of the input.
34+
@Deprecated('prefixIcon is no longer used in ThemedColorPicker')
35+
final IconData? prefixIcon;
36+
3337
/// [onPrefixTap] is the callback function when the prefix is tapped.
3438
final VoidCallback? onPrefixTap;
3539

@@ -84,6 +88,8 @@ class ThemedColorPicker extends StatefulWidget {
8488
this.hideDetails = false,
8589
this.padding,
8690
this.dense = false,
91+
// ignore: deprecated_member_use_from_same_package
92+
this.prefixIcon,
8793
this.onPrefixTap,
8894
this.placeholder,
8995
this.saveText = "OK",

0 commit comments

Comments
 (0)