Skip to content

DecoratedBox: clip behavior + other improvements #154780

Description

@nate-thegrate

Container is a somewhat "heavy" widget (see #147431), so it'd be great if DecoratedBox could fully decorate a box by itself (as its name would imply).

  • PhysicalShape allows setting a clipBehavior; DecoratedBox should as well.
  • Decoration objects have intrinsic padding; maybe there should be an option to apply this padding.
  • And perhaps the BoxShadow API has some room for improvement, though at this point I'm not sure if there's a clear path forward.

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

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