scrollDirection: Axis.vertical,
controller: _pageController,
itemCount: imagesList?.length,
itemBuilder: (context, index) {
String imageUrl = imagesList![index]['url']!;
return SingleChildScrollView(
child: Stack(
children: [
ExtendedImage.network(
imageUrl,
fit: BoxFit.fitWidth,
mode: ExtendedImageMode.gesture,
initGestureConfigHandler: (state) {
return GestureConfig(
minScale: 0.9,
maxScale: 3,
initialScale: 1.0,
inPageView: true,
initialAlignment: InitialAlignment.center,
);
The swipe up/down gestures aren't working due to the SingleChildScrollView. How can I remove the SingleChildScrollView and still have the image take up the full width and be scrollable?
Never seen that widget 🤔. you can try body: Stack(Image+....+SingleChildScrollView)
SingleChildScrollView disable my gesture of the ExtendedImage
Обсуждают сегодня