flutter-intro-slider icon indicating copy to clipboard operation
flutter-intro-slider copied to clipboard

wrong next btn and prev btn when use Directionality ltr

Open heshesh2010 opened this issue 2 years ago • 0 comments

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,
      ),
    );


heshesh2010 avatar Sep 24 '23 15:09 heshesh2010