Skip to content

BoxDecoration improvements #12054

@Hixie

Description

@Hixie

I want a BoxDecoration analogue (ideally a superclass of BoxDecoration) that can draw a border and background around an arbitrary path, and can lerp between shapes, e.g. a star becoming a circle or a rounded rect becoming a diamond.

Decoration
  |
Shape: color, gradient, image, boxShadow, border (ShapeBorder ?)
  |
BoxDecoration: shape, borderRadius, border (BorderGeometry)

ShapeBorder ?
  |
BorderGeometry
  |
  +- Border (top, left, right, bottom)
  |   |
  |   +- TableBorder ??
  |
  +- BorderDirectional (top, start, end, bottom)
  |   |
  |   +- TableBorderDirectional ??
  |
  +- _MixedBorder

BorderRadiusGeometry
  |
  +- BorderRadius
  |
  +- BorderRadiusDirectional
  |
  +- _MixedBorderRadius

Metadata

Metadata

Assignees

Labels

c: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.waiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions