Skip to content

SliverCrossAxisGroup & SliverMainAxisGroup should optimize painting #129214

@Piinks

Description

@Piinks

For both of these widgets, they do not currently consider if the child is visible before painting them. Skipping painting for children that are not visible would be a nice optimization, and would follow other widgets like RenderViewport.paint in the pattern of behavior.

// In paint
if (child.geometry!.visible) {
 paint...
}

cc @thkim1011

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listf: scrollingViewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.perf: speedPerformance issues related to (mostly rendering) speedteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions