Skip to content

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

Open
@heshesh2010

Description

@heshesh2010

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions