Flutter Material UI BoxShape Enum

The shape to use when rendering a Border or BoxDecoration.


BoxShape Constants

  • BoxShape.circle: A circle centered in the middle of the box into which the Border or BoxDecoration is painted. The diameter of the circle is the shortest dimension of the box, either the width or the height, such that the circle touches the edges of the box.

  • BoxShape.rectangle: An axis-aligned, 2D rectangle. May have rounded corners. The edges of the rectangle will match the edges of the box into which the Border or BoxDecoration is painted.

  • BoxShape.values: A constant List of the values in this enum, in order of their declaration.


Reference