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

on RTL mode (i.e. in Arabic languages) indicatorBuilder's text is bit shifted up #67

Open
SardorbekR opened this issue Apr 3, 2024 · 0 comments

Comments

@SardorbekR
Copy link

SardorbekR commented Apr 3, 2024

here's my code:

indicatorBuilder: (_, index) =>
              Container(
                    width: 24,
                    height: 24,
                    decoration: BoxDecoration(
                      shape: BoxShape.circle,
                      color: AppColors.accentExtraLight,
                      border: Border.all(color: AppColors.accentGreenPrimary),
                    ),
                    child: Center(
                      child: Text(
                        "${index + 1}",
                      ),
                    ),
                  ),

I can add some padding, but I'm afraid it might break on other size devices and that's not a correct way of doing it.
I even tried force making this widget LTR always but no luck
on LTR mode looks fine.

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant