Repository navigation
Conversation
The persistent View bottom_sheet was aligned to the bottom of the whole Cupertino scaffold content, which includes the bottom navigation bar, so it covered the tab bar. Like Material's Scaffold.bottomSheet it now floats over the body inside the region above the navigation bar; the scaffold SafeArea still keeps it above the home indicator when there is no bar.
This was referenced Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Engine-only fix with no Ruby change. QA found it while reviewing ruflet #27, which exposes View
bottom_sheetin Ruby.Bug
On iOS/macOS, a View's persistent
bottom_sheetslot (PlatformPageScaffold.bottomSheet, fromview.dart:210) was aligned to the bottom of the whole scaffold content inRufletCupertinoPageScaffold, which includes the bottomnavigation_bar. So the sheet was drawn on top of the tab bar and covered it.Material's
Scaffold.bottomSheetsits abovebottomNavigationBarand floats over the body. That is the reference behaviour.Measured on base c9b9d76 (800x600, 34 px home indicator): iOS sheet bottom = 566 and nav bar top = 516, so the sheet covered the bar.
Fix
lib/src/widgets/cupertino_page_scaffold.dart_buildContent():Stack: the body fills it and the sheet is aligned to its bottom.Expandedregion above the bottom navigation bar, so the sheet stands on the bar, as in Material.SafeAreais unchanged. The bottom inset still applies to the bar, or to the sheet when there is no bar.The FAB and drawer layers are unchanged. Reading the code, the Cupertino FAB is still aligned over the whole content, so it can also overlap a bottom navigation bar. QA did not report that, so it is not changed here and is flagged as a possible follow-up.
Wire keys / Ruby usage
No wire change: View
bottom_sheet+navigation_bar.Tests
New
test/widgets/view_bottom_sheet_geometry_test.dartrenders a real Ruby-shaped View throughPlatformApp, with 54/34 px insets, on both designs:navigation_bar:sheet.bottom == nav.topsheet.bottom == 600 - 34and its content stays above the insetBefore the fix, only the iOS nav-bar case failed (expected 516, actual 566). After it, all 4 pass, and the existing
platform_page_scaffold_test(including "body clears navigation chrome exactly once") andcanonical_page_chrome_teststill pass.verify_pr.sh(Flutter 3.41.2; Ruby tree = cleanorigin/mainb34072be because Ruby is unchanged):