chulwoo-park/timelines

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

SardorbekR opened this issue · 0 comments

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