100lvlmaster / stacked_page_view

Flutter plugin to render stacked page view

Home Page:https://pub.dev/packages/stacked_page_view

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stacked Page View!

flutter dart

Hi! This package will create stacked page view in your flutter app. it's as lightweight as it can get⚡⚡ .

  • Just wrap it between your PageView builder and the iterable children like the code below.
PageView.builder(
        itemCount: 10,
        scrollDirection: Axis.vertical,
        controller: pageController,
        itemBuilder: (context, index) {
          return StackPageView(
            controller: pageController,
            index: index,
            child: Container(
              color: (colors..shuffle()).first,
              child: Center(
                child: Text(
                  '$index',
                  style: TextStyle(
                    color: Colors.white,
                    fontSize: 25,
                  ),
                ),
              ),
            ),
          );
        },
      )

example gif

About

Flutter plugin to render stacked page view

https://pub.dev/packages/stacked_page_view

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 73.9%Language:HTML 18.9%Language:Swift 5.1%Language:Kotlin 1.6%Language:Objective-C 0.5%