SingleChildScrollView and Swiper not working together. Any solution to this?

397 views Asked by At

In my flutter project, I am creating a Swiper widget of images at the top portion of the screen. Along with that, I want the whole screen to be scrollable as there is content below the swiper and other widgets too.

The problem is that if I use SingleChildScrollView for the column widget of all widgets, the Swiper does not function.

what I want to achieve...

this is where i am at now

Here's the code

SingleChildScrollView(
        child: Column(
          children: [
                  Swiper(
                    layout: SwiperLayout.CUSTOM,
                    customLayoutOption: CustomLayoutOption(
                       //my custom swiper options
                    ),
                    itemBuilder: (context, index) {
                      return Stack(//images,text on top of it),
                      },
                  )
                  Container(child:...//other widgets),
                  Container(child:...//other widgets),
                  ]
                )
         )  
         //SingleChildScrollView
0

There are 0 answers