duytq94 / flutter-intro-slider

Simple and configurable app introduction slider for Flutter
https://pub.dartlang.org/packages/intro_slider
MIT License
677 stars 141 forks source link

Adjust dots with flutter_localizations direction #33

Closed rami-alloush closed 5 years ago

rami-alloush commented 5 years ago

I'm building an Arabic App (right to left direction). Everything works fine except for the dot indicator it keeps going from Left to Right. Thanks

duytq94 commented 5 years ago

Hi @rami-alloush Do you know any method at flutter to detect which direction is using? If it does, I can auto detect and set the right direction. If not, maybe I give an attribute as an option to set direction.

rami-alloush commented 5 years ago

Thanks @duytq94 for the reply. GlobalWidgetsLocalizations.delegate defines the default text direction, either left to right or right to left, for the widgets library. Please refer to this page for more details here

duytq94 commented 5 years ago

Thanks @rami-alloush But what I really need is there any method that help us detect which direction is using. And seem your advice does not mention about it.

rami-alloush commented 5 years ago

There are only 5 languages that are RTL. You can check and detect them. Please refer to this answer here Thanks

duytq94 commented 5 years ago

I fixed in 2.2.3 with df49af8b332425df45ff51d9b15be7bc099128b3 Thanks for your suggestion.

xmavara commented 4 years ago

it does not work well yet, please fix it. everything is fine except for dots in rtl Directionality.

duytq94 commented 4 years ago

@xmavara please read here https://github.com/duytq94/flutter-intro-slider/issues/20

AlaaMarawi commented 3 years ago

@duytq94 can you please at least wrap it with Directionality widget which is LTR by default but can be RTL by user choice ? it should be very easy .. thank you for this amazing plugin :)

Amr1440 commented 2 years ago

Dots doesn't support RTL direction until now :(