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

RenderRepaintBoundary toImage() only returns visible area data when working with ScrollView #20868

Closed
bigship opened this issue Aug 21, 2018 · 2 comments

Comments

@bigship
Copy link

bigship commented Aug 21, 2018

I have a SingleChildScrollView, and it can scrolls horizontally. The child widget of the SingleChildScrollView is a Container widget with height: 125.0, width: 3000.0
the child widget of the Container is a Stack widget with children are all Draggable widgets wrapped by Positioned widget, so I can place these Draggable widgets at my will. But when I use RenderRepaintBoundary toImage() method to capture the content of ScrollView, only the visible area can be captured, not the full content of ScrollView.

@bigship
Copy link
Author

bigship commented Aug 21, 2018

It's my bad to mess up the Widgets hierarchy. I made a mistake to let RepaintBoundary be the parent of SingleChildScrollView, but it really needs to put RepaintBoundary as the child of the SingleChildScrollView to work properly.

Closed.

@github-actions
Copy link

github-actions bot commented Sep 2, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant