Skip to content

Commit efa102d

Browse files
committed
fix(grid): apply ResponsiveRow spacing to both axes
deprecate(table): mark ThemedTable and related symbols as @deprecated in favor of ThemedTable2 chore(release): bump version to 7.5.28
1 parent d2c146f commit efa102d

11 files changed

Lines changed: 57 additions & 4 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.27",
4+
"version": "7.5.28",
55
"author": {
66
"name": "Golden M, Inc.",
77
"url": "https://github.com/goldenm-software"

.claude/skills/responsive-row/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ResponsiveRow(
3737
- Renders as `SizedBox(width: double.infinity, child: Wrap(...))` — always full parent width.
3838
- `children` only accepts `List<ResponsiveCol>` — use `ResponsiveCol(child: Divider())` for dividers.
3939
- `builder` takes `ResponsiveCol Function(int)` — not `Widget Function(BuildContext, int)`.
40-
- `spacing` is horizontal gap between columns in pixels (default `0`).
40+
- `spacing` applies to **both axes**: horizontal gap between columns in the same row, and vertical gap between rows when columns wrap (default `0`).
4141

4242
---
4343

.claude/skills/responsive-row/references/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ResponsiveRow.builder({
3535
| `children` | `List<ResponsiveCol>` | required | Only `ResponsiveCol`. For dividers: `ResponsiveCol(child: Divider())` |
3636
| `mainAxisAlignment` | `WrapAlignment` | `.start` | Horizontal alignment of columns |
3737
| `crossAxisAlignment` | `WrapCrossAlignment` | `.start` | Vertical alignment of columns |
38-
| `spacing` | `double` | `0` | Horizontal gap between columns in pixels |
38+
| `spacing` | `double` | `0` | Gap between columns (horizontal) and between wrapped rows (vertical) in pixels |
3939

4040
Renders as `SizedBox(width: double.infinity, child: Wrap(...))` — always full parent width.
4141

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.28
4+
5+
- Deprecated `ThemedTable`, `ThemedColumn`, `ThemedTableAction`, `ThemedTableAvatar`, and related typedefs (`ValueBuilder`, `WidgetBuilder`, `CellTap`, `CellColor`, `ValueBuilder2`, `kThemedTableCanTrue`). Use `ThemedTable2` instead. All symbols will be removed in version 8.0.0.
6+
- Fixed `ResponsiveRow` spacing on vertical layouts: `spacing` now applies to both horizontal gaps between columns and vertical gaps between wrapped rows (`Wrap.runSpacing`). Previously, `spacing` had no effect when columns stacked vertically on mobile (xs: .col12).
7+
38
## 7.5.27
49

510
- Fixed `ThemedColorPicker` double `#` prefix bug: `.hex` extension already includes `#`, so the controller text was displaying `##RRGGBB` instead of `#RRGGBB`.

lib/src/grid/src/row.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class ResponsiveRow extends StatelessWidget {
6666
width: double.infinity,
6767
child: Wrap(
6868
spacing: spacing,
69+
runSpacing: spacing,
6970
direction: Axis.horizontal,
7071
alignment: mainAxisAlignment,
7172
crossAxisAlignment: crossAxisAlignment,

lib/src/table/src/action.dart

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

3+
@Deprecated('Use ThemedTable2 instead. ThemedTable will be removed in version 8.0.0.')
34
class ThemedTableAction<T> {
45
/// The label of the action.
56
final Widget? label;

lib/src/table/src/avatar.dart

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

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

lib/src/table/src/column.dart

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

33
/// [ValueBuilder<T>] defines the value to display in a column.
4+
@Deprecated('Use ThemedTable2 instead. ThemedTable will be removed in version 8.0.0.')
45
typedef ValueBuilder<T> = String Function(BuildContext context, T item);
56

67
/// [WidgetBuilder<T>] defines the widget to display in a column.
8+
@Deprecated('Use ThemedTable2 instead. ThemedTable will be removed in version 8.0.0.')
79
typedef WidgetBuilder<T> = Widget Function(BuildContext context, T item);
810

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

1215
/// [CellColor<T>] defines the color of the cell.
16+
@Deprecated('Use ThemedTable2 instead. ThemedTable will be removed in version 8.0.0.')
1317
typedef CellColor<T> = Color? Function(T item);
1418

1519
/// [ValueBuilder2<T>] defines the value to display in a column.
20+
@Deprecated('Use ThemedTable2 instead. ThemedTable will be removed in version 8.0.0.')
1621
typedef ValueBuilder2<T> = String Function(T item);
1722

23+
@Deprecated('Use ThemedTable2 instead. ThemedTable will be removed in version 8.0.0.')
1824
class ThemedColumn<T> {
1925
/// The label of the column.
2026
final Widget? label;

lib/src/table/src/table.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
part of '../table.dart';
22

3+
@Deprecated('Use ThemedTable2 instead. ThemedTable will be removed in version 8.0.0.')
34
bool kThemedTableCanTrue(BuildContext context, item) => true;
45

6+
@Deprecated('Use ThemedTable2 instead. ThemedTable will be removed in version 8.0.0.')
57
class ThemedTable<T> extends StatefulWidget {
68
/// Represents the columns or headers of the table. This columns only will be displayed in desktop size.
79
///

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.27"
3+
version: "7.5.28"
44
homepage: https://theme.layrz.com
55
repository: https://github.com/goldenm-software/layrz_theme
66

0 commit comments

Comments
 (0)