Skip to content

Commit 40bbcd7

Browse files
Adjust README, Deprecate ThemedTable in favor of ThemedTable2 and Fix ResponsiveRow (#134)
This pull request introduces a new minor version (7.5.28) with two main themes: deprecating the original table widgets and improving the `ResponsiveRow` widget's spacing behavior. The deprecated table components are now marked for removal in 8.0.0 in favor of `ThemedTable2`. Additionally, `ResponsiveRow`'s `spacing` parameter now correctly applies to both horizontal and vertical gaps, improving layout consistency on all screen sizes. Documentation, tests, and versioning have been updated accordingly. **Deprecation of old table widgets:** - Marked `ThemedTable`, `ThemedColumn`, `ThemedTableAction`, `ThemedTableAvatar`, and related typedefs (`ValueBuilder`, `WidgetBuilder`, `CellTap`, `CellColor`, `ValueBuilder2`, `kThemedTableCanTrue`) as deprecated in favor of `ThemedTable2`; all will be removed in version 8.0.0. [[1]](diffhunk://#diff-76e1e4c2df253b998f743d40e9e83f340b667d15bf65e0dc762bcb91b2053babR3) [[2]](diffhunk://#diff-f8bc969dbbbf4ea76cf889384c13afa02de80a6c701c0da79bb878c904f50ffaR3) [[3]](diffhunk://#diff-d78f95b051e7bc1a1bf6173fcf98c7800e789890bcfaebb333eed6a8b4383d14R4-R23) [[4]](diffhunk://#diff-87dbc3e0b982b5898c5fce6aeadcdaad53e025f1a6a3a619e3ebee67fbb2851eR3-R6) [[5]](diffhunk://#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4edR3-R7) **ResponsiveRow spacing improvements:** - Updated `ResponsiveRow` so that the `spacing` parameter now applies to both horizontal gaps between columns and vertical gaps between wrapped rows (`Wrap.runSpacing`), fixing previous layout issues on mobile. [[1]](diffhunk://#diff-dc2c8074e560830427c3c11082212de1410196d0111badccf675e6bbd0c4d666R69) [[2]](diffhunk://#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4edR3-R7) - Improved documentation in `.claude/skills/responsive-row/SKILL.md` and `.claude/skills/responsive-row/references/api.md` to clarify that `spacing` affects both axes. [[1]](diffhunk://#diff-dd4e3cb259d4a91e608630d731f9cdfbe8d58721b7070ed7268755fb11a82772L40-R40) [[2]](diffhunk://#diff-748ebe5caabc660edbf6c5b167695543e359f33dcb1d6f8faa17906a240e4d7cL38-R38) - Added new tests to verify that `ResponsiveRow` sets both `spacing` and `runSpacing` as intended. **Versioning and metadata:** - Bumped package version to `7.5.28` in `pubspec.yaml` and `.claude/plugin.json`. [[1]](diffhunk://#diff-8b7e9df87668ffa6a04b32e1769a33434999e54ae081c52e5d943c541d4c0d25L3-R3) [[2]](diffhunk://#diff-ede8c46127dd0d9410cfb5a8fdf1f55257345e782db1a2f2aa5bdb73d9845a3cL4-R4) - Updated `CHANGELOG.md` to reflect these changes. **Other:** - Fixed the plugin marketplace add command in `README.md` to use the correct repository name (`layrz_theme`).
2 parents 6dee31c + c08a369 commit 40bbcd7

16 files changed

Lines changed: 63 additions & 6 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`.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This repository includes a *Claude Code plugin* as part of our initiative to pro
1515
Add this repository as a Claude Code plugin marketplace, then install the plugin:
1616

1717
```bash
18-
/plugin marketplace add goldenm-software/layrz-theme
18+
/plugin marketplace add goldenm-software/layrz_theme
1919
```
2020

2121
Once the marketplace is added, install the plugin from the **Discover** tab in `/plugin`, or run:

example/lib/views/table/src/basic.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore_for_file: deprecated_member_use
12
part of '../table.dart';
23

34
class BasicTableView extends StatefulWidget {

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ packages:
390390
path: ".."
391391
relative: true
392392
source: path
393-
version: "7.5.27"
393+
version: "7.5.28"
394394
leak_tracker:
395395
dependency: transitive
396396
description:

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/scaffolds/src/sidebar.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore_for_file: deprecated_member_use_from_same_package
12
part of '../scaffolds.dart';
23

34
class ThemedScaffoldView<T> extends StatefulWidget {

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;

0 commit comments

Comments
 (0)