pdf_viewer_plugin icon indicating copy to clipboard operation
pdf_viewer_plugin copied to clipboard

Flutter, How to handle the scroll of PDF Viewer when the parent has a long height with scroll?

Open Ramin-Bateni opened this issue 5 years ago • 2 comments

I have a column include several widgets. This column is the parent and its children cause the column has scroll. On the other hand I used PDF View Plugin and its PdfVeiwer widget inside the column.

But I have a problem. If both of the PdfVeiwer and the Column widgets have scroll. I can not scroll the PDF pages and just the Column can scroll!

How should I solve this problem?

SingleChildScrollView(
  child: Column(
	children: <Widget>[
	  ExpandablePanel(
		hasIcon: false,
		header: Container(
		  height: 50.0,
		  child: Row(
			mainAxisAlignment: MainAxisAlignment.spaceBetween,
			children: <Widget>[
			  Icon(Icons.keyboard_arrow_down),
			  Text('Title'),
			],
		  ),
		),
		expanded: Container(
			padding: EdgeInsets.all(8.0),
			child: SizedBox(
			  height: 500.0,
			  child: PdfViewer(filePath: path),   
			)),
	  ),

      //My Other widgets are here 

	],
  ),
);

Ramin-Bateni avatar Sep 14 '20 10:09 Ramin-Bateni

Why this issue is still open?

hemandroid avatar Mar 17 '22 10:03 hemandroid

This will help https://www.youtube.com/watch?v=gAUVz0U7eyA

myselfuser1 avatar Mar 17 '23 12:03 myselfuser1