Skip to content

refactor(mix_tailwinds): simplify code with Dart 3 patterns#847

Closed
leoafarias wants to merge 2 commits intofeature/mix-tailwindsfrom
feature/mix-tailwinds-v1
Closed

refactor(mix_tailwinds): simplify code with Dart 3 patterns#847
leoafarias wants to merge 2 commits intofeature/mix-tailwindsfrom
feature/mix-tailwinds-v1

Conversation

@leoafarias
Copy link
Collaborator

Summary

  • Extract common H1-H6 build logic into shared _buildHeading helper (~100 lines reduced)
  • Simplify _BorderAccum setters with compound assignment
  • Refactor _extractMargin to use pattern matching with switch expression
  • Apply Dart 3 case patterns in type checks throughout tw_parser.dart
  • Convert shadow apply functions to switch expressions

Test plan

  • Static analysis passes (flutter analyze)
  • All tests pass (flutter test)
  • Code formatted with dart format

- Extract common H1-H6 build logic into _buildHeading helper
- Simplify _BorderAccum setters with compound assignment
- Refactor _extractMargin to use pattern matching with switch
- Apply Dart 3 case patterns in type checks throughout tw_parser
- Convert shadow apply functions to switch expressions
@docs-page
Copy link

docs-page bot commented Feb 3, 2026

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

docs.page/btwld/mix~847

Documentation is deployed and generated using docs.page.

@vercel
Copy link
Contributor

vercel bot commented Feb 3, 2026

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

Project Deployment Actions Updated (UTC)
mix-docs Ready Ready Preview, Comment Feb 3, 2026 10:08pm

Updated golden test images to match current rendering environment.
@leoafarias
Copy link
Collaborator Author

Closing due to visual regressions detected in golden image comparison.

@leoafarias leoafarias closed this Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant