This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Reply] Cap body at 1340 for desktop and tablet #425
Merged
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
15524fc
Cap reply body with to 1340 on desktop/tablet
Renzo-Olivares 1d8f2fe
Fix white lines around body of navigation rail
Renzo-Olivares 728f3eb
Cap tablet width to 800
Renzo-Olivares bee3a0e
Merge branch 'master' of github.com:flutter/gallery into reply_body_cap
Renzo-Olivares 93c0188
Use Center widget instead of Row and Flexible
Renzo-Olivares 408077c
Change divider width back to 1 and set cap at 1340 for both tablet an…
Renzo-Olivares c8797ff
Merge branch 'master' into reply_body_cap
guidezpl ece2048
Merge branch 'master' into reply_body_cap
guidezpl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -241,11 +241,17 @@ class _DesktopNavState extends State<_DesktopNav> | |
); | ||
}, | ||
), | ||
const VerticalDivider(thickness: 1, width: 1), | ||
const VerticalDivider(thickness: 1, width: 2), | ||
Expanded( | ||
child: _SharedAxisTransitionSwitcher( | ||
defaultChild: _MailNavigator( | ||
child: MailboxBody(key: widget.inboxKey), | ||
child: Center( | ||
child: ConstrainedBox( | ||
constraints: | ||
BoxConstraints(maxWidth: widget.extended ? 1340 : 800), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the original bug was to cap at only 1340. Why 800 for non extended? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, you're right. I misunderstood the purpose of the cap and made it consistent for both desktop and tablet. I changed it back to match the original issue, also the margins were not constant when the width was under 1340 with the added 800 cap. |
||
child: _SharedAxisTransitionSwitcher( | ||
defaultChild: _MailNavigator( | ||
child: MailboxBody(key: widget.inboxKey), | ||
), | ||
), | ||
), | ||
), | ||
), | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats the reason for this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I increased the width to remedy some artifacts (white vertical lines surrounding body shown above). From my observation, they seem to be a result of the navigation rail body not expanding to its max-width like it previously did before this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like these lines still show up if I don't have my browser window maximized. It looks like they show up right when I stretch the body past the 1340 width cap. Maybe because the
Expanded
widget is no longer taking up the entire available space, so there is a gap. I'll keep working on this.