Handle gestures when using PDFView inside scrollable widgets
mainIf you embed PDFView inside a scrollable parent (like ListView, SingleChildScrollView, or PageView), the parent may intercept drag gestures, preventing swiping within the PDF (especially on iOS). To fix this, pass an EagerGestureRecognizer to the gestureRecognizers property so the PDF view consumes gestures within its bounds.
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
PDFView(
filePath: path,
gestureRecognizers: {
Factory<OneSequenceGestureRecognizer>(() => EagerGestureRecognizer()),
},
)