Repository navigation
fix(ui): keep content out from under the translucent app bar - #18
Merged
Merged
Conversation
Both screens put the body behind the app bar for the glass effect, but nothing compensated for its height, so the top of the content was painted under the bar. On Home that hid the folder chips and, with the list's own automatic MediaQuery padding on top, left a dead band above the first chat. In a chat the avatar header and the first day separator were cut by the bar when scrolled to the top. The chips and the conversation now start below the bar (status bar plus toolbar height); the list's automatic padding is off so the gap is not counted twice. Scrolling still passes content under the bar, which is what the glass is for. Measured on the running build: chips 112-160 (bar ends at 104) with the first chat row at 164, and the chat header avatar at 148-208 instead of under the bar.
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.
Both screens extend the body behind the app bar for the glass effect, but nothing accounted for its height.
Home: the folder chips were painted under the bar (invisible) and the list's automatic MediaQuery padding added a second inset, leaving the dead band above the first chat.
Chat: scrolled to the top, the avatar header and the first day separator were cut by the bar.
Fix: the chips and the conversation now start below the bar (
MediaQuery.viewPadding.top + kToolbarHeight), and the home list's automatic padding is turned off so the gap is not counted twice. Content still scrolls under the bar, which is what the glass is there for.Measured on the running build (semantic bounds, app bar ends at 104):
Verification:
flutter analyze --no-fatal-infosclean,flutter test153/153.Known leftover, not touched: the sticky day chip inside a day still pins to the very top of the viewport, so it slides under the bar while that day is on screen. Fixing it means offsetting the pinned sliver; say the word.