Skip to content

docs: prefer .borderRadius(.circular(X)) for scalar radii#6

Merged
tilucasoli merged 3 commits intomainfrom
tilucasoli/dhaka-v2
Apr 16, 2026
Merged

docs: prefer .borderRadius(.circular(X)) for scalar radii#6
tilucasoli merged 3 commits intomainfrom
tilucasoli/dhaka-v2

Conversation

@tilucasoli
Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #5. Converts scalar .borderRadius(.all(N)) examples (where N is a double) to .borderRadius(.circular(N)) so docs consistently promote the idiomatic form. Token-based calls like .borderRadius(.all($radiusMd())) are left intact because .circular() expects a double, while the token returns a Radius.

Test plan

  • Render the docs site and spot-check updated pages

🤖 Generated with Claude Code

Switches scalar `.borderRadius(.all(N))` examples to `.borderRadius(.circular(N))`
to match the preferred idiom. Token-based cases keep `.all(...)` since
`.circular()` expects a double.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@docs-page
Copy link
Copy Markdown

docs-page bot commented Apr 16, 2026

To view this pull requests documentation preview, visit the following URL:

docs.page/btwld/mix-docs~6

Documentation is deployed and generated using docs.page.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mix-docs Ready Ready Preview, Comment Apr 16, 2026 9:21pm

Applies dot-notation sweep to homepage snippet and mix_docs_preview
Dart examples, preserving the original numeric radius arguments.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@tilucasoli tilucasoli merged commit 4fdde0d into main Apr 16, 2026
4 checks passed
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.

1 participant