FlutterSwitch icon indicating copy to clipboard operation
FlutterSwitch copied to clipboard

Missing RTL support

Open Harishwarrior opened this issue 4 years ago • 1 comments

Describe the bug When changing language to Arabic or any RTL language the text overlaps with button.

To Reproduce Steps to reproduce the behavior:

  1. Set language to Arabic
  2. Toggle the switch
  3. The text in the toggle will overflow with button.

Expected behavior It should follow RTL layout.

Screenshots Screenshot_20211123-161424.jpg

Smartphone (please complete the following information):

  • Device: [OnePlus 6T]
  • OS: [Android 11]

Additional context Screenshot_20211123-161538.jpg

In LTR everything looks fine.

Harishwarrior avatar Nov 23 '21 10:11 Harishwarrior

I need this too -- the drawing direction should be switched if:

Directionality.of(context) == TextDirection.rtl

lukehutch avatar Mar 22 '24 09:03 lukehutch