Skip to content

πŸ§ͺ [Add test coverage for AsyncButton controller swapping] - #5

Merged
esenmx merged 2 commits into
mainfrom
test-async-button-controller-swap-12243316508834345290
Jul 1, 2026
Merged

πŸ§ͺ [Add test coverage for AsyncButton controller swapping]#5
esenmx merged 2 commits into
mainfrom
test-async-button-controller-swap-12243316508834345290

Conversation

@esenmx

@esenmx esenmx commented Jul 1, 2026

Copy link
Copy Markdown
Owner

πŸ§ͺ What: Added missing test coverage for swapping between internally-managed and externally-managed controllers in AsyncButton's didUpdateWidget.
πŸ“Š Coverage: Specifically tested swapping from null to an AsyncButtonController instance, and from an AsyncButtonController instance back to null.
✨ Result: Increased confidence that modifying the controller parameter on an existing AsyncButton correctly transfers listeners without leaks and without breaking UI updates. All tests are passing.


PR created automatically by Jules for task 12243316508834345290 started by @esenmx

Added test coverage for AsyncButton.didUpdateWidget to ensure listeners
are correctly transferred or internal controllers are correctly managed
when the widget's controller parameter transitions between null and an
external AsyncButtonController instance.

Co-authored-by: esenmx <43244505+esenmx@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

πŸ‘‹ Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a πŸ‘€ emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Fix line length issues found by flutter analyze in the newly added tests
for swapping the external controller.

Co-authored-by: esenmx <43244505+esenmx@users.noreply.github.com>
@esenmx
esenmx merged commit fad3e19 into main Jul 1, 2026
6 checks passed
@esenmx
esenmx deleted the test-async-button-controller-swap-12243316508834345290 branch July 1, 2026 14:48
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