Skip to content

Conversation

@SajeeTechi
Copy link
Contributor

…ee lock

Wraps clearTipping(), updateMessage(), and updateListenerAmount() calls in
addPostFrameCallback during dispose() to prevent "setState() or
markNeedsBuild() called when widget tree was locked" error.

These methods trigger notifyListeners() which cannot be called during the
dispose phase. Deferring them until after the current frame ensures the
widget tree is unlocked before state updates occur.
@SajeeTechi SajeeTechi requested a review from kevtechi January 13, 2026 06:37
@SajeeTechi SajeeTechi self-assigned this Jan 13, 2026
@SajeeTechi SajeeTechi merged commit 58cd129 into release/2.0.31 Jan 13, 2026
1 check passed
@SajeeTechi SajeeTechi deleted the 281-adding-tip-in-receive-screen-persists-tipping-data-in-send-flow branch January 13, 2026 06:37
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