Skip to content

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

@bigship

Description

@bigship

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions