Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ramin-Bateni opened this issue Sep 14, 2020 · 2 comments

Comments

@Ramin-Bateni
Copy link

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 

	],
  ),
);
@hemandroid
Copy link

Why this issue is still open?

@myselfuser1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants