Skip to content

codelessly_sdk 7.1.1: size childless badges to their content - #62

Merged
rayliverified merged 1 commit into
masterfrom
claude/hopeful-brown-c8o8x7
Oct 13, 2026
Merged

rayliverified merged 1 commit into
masterfrom
claude/hopeful-brown-c8o8x7

Conversation

@rayliverified

Copy link
Copy Markdown
Contributor
  • Badge: a badge with no child was placed in an Align that stretched to fill any loose constraints. As a result, the editor measured a badge set to wrap its content as the size of the whole viewport. The Align now has width and height factors of 1, so it sizes to the badge and still positions it inside a fixed-size node box.
  • Chip: chips are now wrapped in a transparent Material, so they render instead of throwing when the host widget tree has no Material above them.
  • Test: a new smoke test checks that badge, chip and segmented button nodes set to wrap their content stay small under loose constraints when no Material is present. It fails without this change.

Version 7.1.1 and a CHANGELOG entry. Format and analyze are clean, and flutter test passes (50/50).

🤖 Generated with Claude Code

https://claude.ai/code/session_01A67XoQYsLVvoMtiKcXXUxY


Generated by Claude Code

- A badge with no child sat in an Align that expanded to loose
  constraints, so the editor measured a wrap-content badge as the whole
  viewport. Give the Align width and height factors of 1: it still
  positions the badge inside a fixed-size node box.
- Wrap chips in a transparent Material, so they render in hosts that
  provide no Material ancestor instead of throwing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A67XoQYsLVvoMtiKcXXUxY
@rayliverified
rayliverified merged commit e7f797a into master Oct 13, 2026
2 checks passed
rayliverified added a commit that referenced this pull request Oct 13, 2026
- A badge with no child sat in an Align that expanded to loose
  constraints, so the editor measured a wrap-content badge as the whole
  viewport. Give the Align width and height factors of 1: it still
  positions the badge inside a fixed-size node box.
- Wrap chips in a transparent Material, so they render in hosts that
  provide no Material ancestor instead of throwing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants