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

wrong next btn and prev btn when use Directionality ltr #143

Open
heshesh2010 opened this issue Sep 24, 2023 · 0 comments
Open

wrong next btn and prev btn when use Directionality ltr #143

heshesh2010 opened this issue Sep 24, 2023 · 0 comments

Comments

@heshesh2010
Copy link

heshesh2010 commented Sep 24, 2023

Hi ,

I'm on RTL local ar interface , but my client want to force the slider to move from left to right , as en locale ,

I used Directionality with ltr and it works prefect , but I see the next arrow shows there is next slider , but actually there is no other slider on the left

`

Directionality(
      textDirection: TextDirection.ltr,
      child: IntroSlider(
        key: UniqueKey(),
        listContentConfig: controller.listContentConfig,
        renderNextBtn: Icon(
          Icons.arrow_forward_ios,
          size: 20.w,
        ),
        renderPrevBtn: Icon(
          Icons.arrow_back_ios,
          size: 20.w,
        ),
        isAutoScroll: true,
        isScrollable: true,
        isLoopAutoScroll: true,

        indicatorConfig: IndicatorConfig(
          indicatorWidget: Container(
            width: 9.0.w,
            height: 9.w,
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(4),
              color: const Color(0xFFDCDCE4),
            ),
          ),
          activeIndicatorWidget: Container(
            width: 10.0.w,
            height: 10.w,
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(4),
              color: AppColors().mainColor(1),
            ),
          ),
          isShowIndicator: true,
          spaceBetweenIndicator: 10.0,
          typeIndicatorAnimation: TypeIndicatorAnimation.sliding,
        ),
        autoScrollInterval: const Duration(seconds: 3),
        curveScroll: Curves.easeInOutExpo,
        isShowDoneBtn: false,
        isShowSkipBtn: false,
        //  onDonePress: onDonePress,
      ),
    );


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