Skip to content

autoplayDisableOnInteraction not working then layout is SwiperLayout.STACK #100

Open
@Xgamefactory

Description

@Xgamefactory

when commenting out layout stack property autoplayDisableOnInteraction works as expected.

 return Swiper(
      autoplayDisableOnInteraction: true,
      autoplayDelay: 1000,
      viewportFraction: 0.8,
      itemBuilder: (BuildContext context, int index) {
        return _pageViewContent(widget.imgList[index]);
        // return new Image.network("http://via.placeholder.com/350x150",fit: BoxFit.fill,);
      },
      itemCount: widget.imgList.length,
      autoplay: true,

      // itemWidth: 370.0, layout: SwiperLayout.STACK,
      // pagination: SwiperCustomPagination(
      pagination: SwiperPagination(
        margin: EdgeInsets.only(top: 10),
        builder: DotSwiperPaginationBuilder(
            color: Colors.grey, activeColor: AppConfig.accentColor),
      ),
      // control: SwiperControl(),
    );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions