fix: use Builder to get descendant context for Scaffold.of() in bottom nav #403

Merged
guettlibot merged 1 commits from refs/pull/403/head into main 2026-06-04 04:16:25 +00:00
1 Commits
Author SHA1 Message Date
Thomas SharedInboxandClaude Sonnet 4.6 bc0f8668bd fix: use Builder to get descendant context for Scaffold.of() in bottom nav
Calling Scaffold.of(context) with the widget's own build context crashes
when no ancestor Scaffold exists in that context. Wrapping the IconButton
in a Builder provides a child context that is a proper descendant of the
Scaffold, which is what Scaffold.of() requires.

Closes #397

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 04:06:03 +02:00