Skip to content

Commit abc030e

Browse files
committed
fix(table): restore ThemedTableAvatar and CellTap<T> from incorrect deprecation
Both symbols were marked @deprecated in 7.5.28 as part of the ThemedTable deprecation sweep, but neither is exclusive to ThemedTable: - ThemedTableAvatar is used by ThemedScaffoldView.avatarBuilder in scaffolds/ - CellTap<T> is used by ThemedColumn2.onTap in table2/ Removed @deprecated from both and dropped the now-unnecessary // ignore_for_file in scaffolds/src/sidebar.dart. Bumps version to 7.5.30.
1 parent 667a71c commit abc030e

6 files changed

Lines changed: 7 additions & 5 deletions

File tree

.claude/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "layrz-theme",
33
"description": "Claude Code skills for layrz-theme Flutter widget library",
4-
"version": "7.5.28",
4+
"version": "7.5.30",
55
"author": {
66
"name": "Golden M, Inc.",
77
"url": "https://github.com/goldenm-software"

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 7.5.30
4+
5+
- Fixed incorrect deprecation of `ThemedTableAvatar`: the class is used by `ThemedScaffoldView.avatarBuilder` in the scaffolds module and is not exclusive to `ThemedTable`. Consumers using `ThemedScaffoldView` were receiving a false `deprecated_member_use` warning.
6+
- Fixed incorrect deprecation of `CellTap<T>`: the typedef is used by `ThemedColumn2.onTap` in `ThemedTable2` and must remain public and non-deprecated while `ThemedTable2` depends on it.
7+
38
## 7.5.29
49

510
- 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.

lib/src/scaffolds/src/sidebar.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ignore_for_file: deprecated_member_use_from_same_package
21
part of '../scaffolds.dart';
32

43
class ThemedScaffoldView<T> extends StatefulWidget {

lib/src/table/src/avatar.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
part of '../table.dart';
22

3-
@Deprecated('Use ThemedTable2 instead. ThemedTable will be removed in version 8.0.0.')
43
class ThemedTableAvatar {
54
/// Represents the name, label or identifier of the avatar.
65
final String? label;

lib/src/table/src/column.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ typedef ValueBuilder<T> = String Function(BuildContext context, T item);
99
typedef WidgetBuilder<T> = Widget Function(BuildContext context, T item);
1010

1111
/// [CellTap<T>] defines the action when the cell is tapped.
12-
@Deprecated('Use ThemedTable2 instead. ThemedTable will be removed in version 8.0.0.')
1312
typedef CellTap<T> = void Function(T item);
1413

1514
/// [CellColor<T>] defines the color of the cell.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: layrz_theme
22
description: Layrz standard styling library for Flutter. Widget library following the Material Design 3 guidelines, with a focus on reliavility and functionality.
3-
version: "7.5.29"
3+
version: "7.5.30"
44
homepage: https://theme.layrz.com
55
repository: https://github.com/goldenm-software/layrz_theme
66

0 commit comments

Comments
 (0)