Skip to content

[CP] Fix TwoDimensionalViewport's keep alive child not always removed (when no longer should be kept alive) #149588

Description

@gawi151

Issue Link

#138977

Target

stable

PR Link

#149639

Changelog Description

Fix of TwoDimentionalViewport's child rendering crash when using keep alive widgets (e.g InkWell).

Impacted Users

Apps using TwoDimentionalViewport with Material components on desktop/web. Especially users of https://pub.dev/packages/two_dimensional_scrollables .

Impact Description

Crash when rendering children in TwoDimentionalViewport. Cells stop to render.

Workaround

Stay on Flutter 3.13 or don't use Material Ink splash related components in 2D viewport.

Risk

low

Test Coverage

yes

Validation Steps

#138977 issue has reproducible code

Metadata

Metadata

Assignees

Labels

cp: reviewCherry-picks in the review queue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions