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

TextDirection.rtl isn't supported #1

Open
aminsamad opened this issue Sep 13, 2021 · 3 comments
Open

TextDirection.rtl isn't supported #1

aminsamad opened this issue Sep 13, 2021 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@aminsamad
Copy link

Hello, I used for clock numbers but just worked for ltr not worked for rtl for example 48 seconds in rtl 84 seconds

@dmiedev
Copy link
Owner

dmiedev commented Sep 13, 2021

Hello, I used for clock numbers but just worked for ltr not worked for rtl for example 48 seconds in rtl 84 seconds

Hi Amid, thanks for opening this issue. I'll look what I can change.

@dmiedev dmiedev self-assigned this Sep 13, 2021
@dmiedev dmiedev added the bug Something isn't working label Sep 13, 2021
@dmiedev dmiedev changed the title Please support rtl ! TextDirection.rtl isn't supported Sep 13, 2021
@dmiedev dmiedev added the good first issue Good for newcomers label Nov 6, 2021
@dmiedev
Copy link
Owner

dmiedev commented Nov 6, 2021

@aminsamad I'm sorry, I don't have much free time right now. If you'd like to contribute, please open a pull request. The code of the package is not that complex, so if you have some experience in Flutter, you should be able to add the right to left text support.

@dmiedev dmiedev removed their assignment Oct 2, 2022
@Metwally92
Copy link

@aminsamad
You can use directionality and add textdirection LTR and since numbers always LTR directed may it work with you since it worked well for me and below is code.
Directionality(
textDirection: TextDirection.ltr,
child: SlidingNumber(
number: 230,
style: Theme.of(context).textTheme.headlineLarge!.copyWith(
color: kGradientButtonTextColor,
fontWeight: FontWeight.w700),
duration: const Duration(milliseconds: 1000),
curve: Curves.linear,
),
),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants