Skip to content

Keep a screen's floating button above the app's snackbar - #98

Merged
dadachi merged 1 commit into
mainfrom
fix/fab-above-snackbar
Oct 30, 2026
Merged

dadachi merged 1 commit into
mainfrom
fix/fab-above-snackbar

Conversation

@dadachi

@dadachi dadachi commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The snackbar is on the app's Scaffold, which a screen's own Scaffold does not know of, so "Shop updated.", the offline notice and the others covered most of the save and add buttons while shown (found on the 3.4.0 device check).
  • AppSnackbarHost reports the snackbar's height (LocalAppSnackbarHeight) and aboveAppSnackbar lifts each button by it: SubmitFab and the other 11 screens' floating buttons.
  • Same fix in nativeapptemplate/NativeAppTemplate-Android.

Test plan

  • scripts/pre-push (spotless, lint, R8, unit tests)
  • AppSnackbarTest: fails with the button under the snackbar (seen red with SubmitFab's modifier removed); a guard that every screen's floating button uses it

🤖 Generated with Claude Code

… NativeAppTemplate-Android)

The snackbar is on the app's Scaffold, which a screen's own Scaffold does
not know of, so "Shop updated." and the offline notice covered most of
the save and add buttons while shown. AppSnackbarHost reports the
snackbar's height and aboveAppSnackbar lifts each button by it.
AppSnackbarTest fails while a button stays under the snackbar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dadachi
dadachi merged commit 395022d into main Oct 30, 2026
1 check passed
@dadachi
dadachi deleted the fix/fab-above-snackbar branch October 30, 2026 07:50
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