material-components / material-components/material-components-android
[MaterialSwitch] Thumb stretching
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
If you abruptly switch the state of `MaterialSwitch` with a thumb, it will stretch, but only at the ends of the track. I'm sure it shouldn't be like this:
https://user-images.githubusercontent.com/82187521/215922723-f26733ed-6353-429f-bd7e-ac4cea7557bc.mp4
**Material Library version:** 1.8.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the thumb stretching in MaterialSwitch from the linked video, using the reported Material Library version 1.8.0 and an abrupt state change. Then locate the MaterialSwitch implementation and any related tests; done means the thumb no longer stretches at either end of the track during that transition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- design, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100