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

Trying to add the switch to a sidedrawer #1

Closed
justinjk007 opened this issue Sep 29, 2019 · 3 comments
Closed

Trying to add the switch to a sidedrawer #1

justinjk007 opened this issue Sep 29, 2019 · 3 comments

Comments

@justinjk007
Copy link

Screenshot from 2019-09-29 13-25-33

But the size of the widget is always out pf proportion, tried wrapping the switch in a container which made it non-responsive Any ideas how to make this switch the size of a regular switch ?

@divyanshub024
Copy link
Owner

Instead of putting it inside the container put it inside of scale.

Transform.scale(
  scale: 0.5,
  child: DayNightSwitch(
   ....
  ),
)

@justinjk007
Copy link
Author

I wish this is applied by default, after all that's the normal use case. It worked btw.

@divyanshub024
Copy link
Owner

Will try to fix this in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants