Skip to content

CustomPaint docs need clarification on Size #52707

@feinstein

Description

@feinstein

The CustomPaint docs say that CustomPaint will size itself regarding its child or its size, but it also says that the default size is Size.zero.

I can use CustomPaint inside a Stack and get the full size of the Stack without any child. So I think CustomPaint when set to Size.zero will size itself to the parents boundaries instead? I am not sure, I just know that the behavior I am seeing doesn't follow the docs.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/found in release: 3.7Found to occur in 3.7found in release: 3.9Found to occur in 3.9frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-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