[codex] optimize reel text rebuilds#26
Conversation
This reverts commit 732b3de.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 49978d2cec
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2014318a31
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
This PR reduces unnecessary rebuild, measurement, and per-frame widget work in
ReelTextwithout changing the public API, and adds a dedicated example stress screen for visual/performance checks.AnimatedBuilderupdates viewport sizing/alignment while slots receive the animation directly.WidgetSpanslots intentionally stay on the widget path because they are live child widgets with layout, baseline, semantics, keys, and selection behavior.ReelTextwidgets, theme support, edge fade, optional frame logging, and a tile-count slider that starts at 4 tiles and scales up to the stress maximum.Notes
Validation
flutter test test/reel_text_test.dartcd example && flutter test test/widget_test.dartcd example && flutter analyzegit diff --check