FlutterSwitch
FlutterSwitch copied to clipboard
Missing RTL support
Describe the bug When changing language to Arabic or any RTL language the text overlaps with button.
To Reproduce Steps to reproduce the behavior:
- Set language to Arabic
- Toggle the switch
- The text in the toggle will overflow with button.
Expected behavior It should follow RTL layout.
Screenshots

Smartphone (please complete the following information):
- Device: [OnePlus 6T]
- OS: [Android 11]
Additional context

In LTR everything looks fine.
I need this too -- the drawing direction should be switched if:
Directionality.of(context) == TextDirection.rtl