Skip to content
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

Fix the switch to match the Material Design spec. #4573

Merged
merged 1 commit into from
Jun 15, 2016

Conversation

eseidelGoogle
Copy link
Contributor

@eseidelGoogle eseidelGoogle commented Jun 15, 2016

Our track and head were slightly off in size.

These now exactly match the sizes in
https://material.google.com/components/selection-controls.html#selection-controls-switch
We took the liberty of assuming the head overlaps the edge
of the track by 2 pixels (instead of the head and the track ending at the same point)
which the provided designs were conflicted about.

Huge thanks to @DaveShuckerow for noticing this issue!

@abarth

Our track and head were slightly off in size.
These now exactly match the sizes in
https://material.google.com/components/selection-controls.html#selection-controls-switch
We took the liberty of assuming the head overlaps the edge
of the track by 2 pixels (instead of the head and the track ending at the same point)
which the provided designs were conflicted about.

Huge thanks to @DaveShuckerow for noticing this issue!

@abarth
@eseidelGoogle
Copy link
Contributor Author

eseidelGoogle commented Jun 15, 2016

Here are screenshots of this updated behavior:
screen shot 2016-06-15 at 9 06 10 am
highlight

@abarth
Copy link
Contributor

abarth commented Jun 15, 2016

Gold star

@eseidelGoogle eseidelGoogle merged commit 7fcaf09 into flutter:master Jun 15, 2016
@eseidelGoogle eseidelGoogle deleted the switch branch June 15, 2016 16:17
cdotstout pushed a commit to cdotstout/flutter that referenced this pull request Apr 3, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants