Creates a stacked page view animation for flutter pageview
Read Time:24 Second

Creates a stacked page view animation for flutter pageview

0 0

Stacked Page View

Creates a stacked page view animation for flutter pageview

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

Creates a stacked page view animation for flutter pageview

GitHub

https://github.com/100lvlmaster/stacked_page_view

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Deja una respuesta

Entrada anterior A personal diary app build with flutter
Entrada siguiente Food Delivery App made by Flutter and Bloc