I want to make a vertical image viewer.
But when the Image is bigger than the screen, top&bottom of the image are hidden.
So I made Pageview and put ListView in PageView.
Now I can scroll down until the end of the ListView but can't scroll PageView.
I want to make 'complete' scrollview in the flutter.
How can I make scroll view in flutter?
PageView(
scrollDirection: Axis.vertical,
pageSnapping: false,
onPageChanged: (index) {
setState(() {
_currentSlider = index;
});
},
children: file.getImages
.map((e) => Center(
child: ListView(
physics: ClampingScrollPhysics(),
children: [
Image.memory(
e,
fit: BoxFit.fitWidth,
)
],
),
))
.toList(),
)