-
Notifications
You must be signed in to change notification settings - Fork 309
content [nfc]: Use Divider instead of DecoratedBox. #836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
When I open the "Before" and "After" images in separate Chrome tabs, then switch between the tabs, I do see a difference in the appearance. I see more whitespace above the divider in the "After" image. |
Oh I do find the difference visible when switching between tabs now. Let me investigate. |
This should offer the same appearence for the spoiler divider despite being shorter. Signed-off-by: Zixuan James Li <[email protected]>
Sure, seems fine to me. Over to Greg for his review. |
I think this refactor isn't helpful. Divider is a Material widget — its main job is that it pulls in a bunch of defaults from Material Design. This overrides three of the five defaults (color, height, thickness — the thickness defaults to 1 but is effectively forced to 0 by the zero height); for the other two, we want indent of zero not because that's the Material 3 default but because it's our design. We often use Material widgets for things like buttons and app navigation, but I think for the message content we generally have a pretty firm idea of what we want the design to look like and don't want it to depend on the choices in Material. |
Thanks for the explanation. Closing the PR. |
This should offer the same appearance for the spoiler divider despite being shorter.
Discovered while working on #823.