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

how do i make it vertical #61

Closed
shreyas-jadhav opened this issue Aug 11, 2024 · 3 comments · Fixed by #62
Closed

how do i make it vertical #61

shreyas-jadhav opened this issue Aug 11, 2024 · 3 comments · Fixed by #62
Assignees
Labels
enhancement New feature or request

Comments

@shreyas-jadhav
Copy link

No description provided.

@maeddin
Copy link
Member

maeddin commented Aug 11, 2024

Vertical switches are not yet supported, but are already planned.

@maeddin maeddin self-assigned this Aug 11, 2024
@maeddin maeddin added the enhancement New feature or request label Aug 11, 2024
@maeddin
Copy link
Member

maeddin commented Aug 11, 2024

@shreyas-jadhav Currently you can use RotatedBox for rotating your switch and its content:

RotatedBox(
   quarterTurns: 1,
   child: AnimatedToggleSwitch(
       iconBuilder: (value) => RotatedBox(quarterTurns: -1, child: ...),
       ...
   ),
)

Does this work for you?

@maeddin
Copy link
Member

maeddin commented Aug 12, 2024

I have now added a vertical() method to AnimatedToggleSwitch. You can use this in your pubspec.yaml to test this new feature :

animated_toggle_switch:
    git:
      url: https://github.com/splashbyte/animated_toggle_switch.git
      ref: 61-vertical-switch

@maeddin maeddin linked a pull request Aug 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants