Skip to content

refactor(core): simplify StyleSpecBuilder build method - #825

Merged
tilucasoli merged 3 commits into
mainfrom
refactor/simplify-style-spec-builder
Feb 11, 2026
Merged

refactor(core): simplify StyleSpecBuilder build method#825
tilucasoli merged 3 commits into
mainfrom
refactor/simplify-style-spec-builder

Conversation

@tilucasoli

@tilucasoli tilucasoli commented Jan 6, 2026

Copy link
Copy Markdown
Collaborator

Related issue

#790

Description

This PR simplifies the StyleSpecBuilder widget by reorganizing code for better readability and removing redundant wrapping logic from the build method.

Changes

  • Moved didUpdateWidget method after _handleControllerChange for better logical flow
  • Removed dead code from StyleSpecBuilder.build()

Review Checklist

  • Testing: Have you tested your changes, including unit tests and integration tests for affected code?
  • Breaking Changes: Does this change introduce breaking changes affecting existing code or users?
  • Documentation Updates: Are all relevant documentation files (e.g. README, API docs) updated to reflect the changes in this PR?
  • Website Updates: Is the website containing the updates you make on documentation?

Additional Information (optional)

This is a refactor with no functional changes

- Move didUpdateWidget after _handleControllerChange for better code organization
- Remove redundant wrapping logic from StyleSpecBuilder.build()
- Delegate StyleSpecProvider and RenderModifiers wrapping to StyleAnimationBuilder
@docs-page

docs-page Bot commented Jan 6, 2026

Copy link
Copy Markdown

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

docs.page/btwld/mix~825

Documentation is deployed and generated using docs.page.

@vercel

vercel Bot commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
mix-docs Ready Ready Preview, Comment Feb 11, 2026 2:55am

@github-actions github-actions Bot removed documentation Improvements or additions to documentation mix_generator repo examples mix_annotations labels Feb 11, 2026
@tilucasoli
tilucasoli merged commit 3c65cf1 into main Feb 11, 2026
7 checks passed
@tilucasoli
tilucasoli deleted the refactor/simplify-style-spec-builder branch February 11, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant