Repository navigation
Commit 40455c0
codelessly_api 5.1.0: badge, chip and segmented button nodes (#35)
Port BadgeNode, ChipNode and SegmentedButtonNode from the unmerged
migrate-json-serializable branch onto the 5.x conventions: standard
json_serializable with the json_defaults_builder omit-defaults step,
Equatable props, copyWith, field access, and Material 3 defaults that
follow Flutter 3.47's Badge, chip widgets and SegmentedButton.
Fields renamed to their Flutter names keep the branch's JSON keys
(dotSize, labelStyle, selectedSegments, selectedColor, unselectedColor),
so JSON written with the branch still loads. The segment model is
ButtonSegmentModel to avoid clashing with Flutter's ButtonSegment.
Register the three types with NodeJsonConverter, port the branch's
tests and badge fixtures, and add round-trip and branch-JSON tests.
Claude-Session: https://claude.ai/code/session_01A67XoQYsLVvoMtiKcXXUxY
Co-authored-by: Claude <noreply@anthropic.com>1 parent 750ae7f commit 40455c0
17 files changed
Lines changed: 4133 additions & 1 deletion
File tree
- lib/src/api
- nodes
- test
- fixtures
- nodes
- display
- input
| 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 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
1 | 38 | | |
2 | 39 | | |
3 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
0 commit comments