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

When outer: true we can't use any Paginations except SwiperPagination #86

Open
Hithori opened this issue Sep 6, 2023 · 1 comment
Open

Comments

@Hithori
Copy link

Hithori commented Sep 6, 2023

In swiper.dart file we have this piece of code:

if (widget.pagination != null) {
      config = _ensureConfig(config);
      if (widget.outer) {
        return _buildOuterPagination(
            widget.pagination! as SwiperPagination,
            listForStack == null ? swiper : Stack(children: listForStack),
            config);
      } else {
        listForStack = _ensureListForStack(
          swiper: swiper,
          listForStack: listForStack,
          widget: widget.pagination!.build(context, config),
        );
      }
    }
@gidrokolbaska
Copy link

Yeah, the docs lack that information, but the example app actually shows how to make it to work.
All you had to do is to wrap SwiperCustomPagination in SwiperPagination:
image
That way, the "outer" property works as expected:

2024-04-17.00.41.51.mov

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

2 participants