presetRectangleShapeMap top-level constant

Map<String, MorphableShapeBorder> const presetRectangleShapeMap

Implementation

const Map<String, MorphableShapeBorder> presetRectangleShapeMap = {
  "RoundAll25": RectangleShapeBorder(
      cornerStyles: RectangleCornerStyles.all(CornerStyle.rounded),
      borderRadius: DynamicBorderRadius.all(
          DynamicRadius.circular(Length(25, unit: LengthUnit.percent)))),
  "CutCornerAll25": RectangleShapeBorder(
      cornerStyles: RectangleCornerStyles.all(CornerStyle.straight),
      borderRadius: DynamicBorderRadius.all(
          DynamicRadius.circular(Length(25, unit: LengthUnit.percent)))),
  "CutoutCornerAll25": RectangleShapeBorder(
      cornerStyles: RectangleCornerStyles.all(CornerStyle.cutout),
      borderRadius: DynamicBorderRadius.all(
          DynamicRadius.circular(Length(25, unit: LengthUnit.percent)))),
  "ConcaveCornerAll25": RectangleShapeBorder(
      cornerStyles: RectangleCornerStyles.all(CornerStyle.concave),
      borderRadius: DynamicBorderRadius.all(
          DynamicRadius.circular(Length(25, unit: LengthUnit.percent)))),
  "DiagonalBottomRight": RectangleShapeBorder(
      cornerStyles:
          RectangleCornerStyles.only(bottomRight: CornerStyle.straight),
      borderRadius: DynamicBorderRadius.only(
          bottomRight: DynamicRadius.elliptical(
              Length(100, unit: LengthUnit.percent),
              Length(25, unit: LengthUnit.percent)))),
  "DiagonalBottomLeft": RectangleShapeBorder(
      cornerStyles:
          RectangleCornerStyles.only(bottomLeft: CornerStyle.straight),
      borderRadius: DynamicBorderRadius.only(
          bottomLeft: DynamicRadius.elliptical(
              Length(100, unit: LengthUnit.percent),
              Length(25, unit: LengthUnit.percent)))),
  "ChevronLeft": RectangleShapeBorder(
      cornerStyles: RectangleCornerStyles.only(
          bottomLeft: CornerStyle.straight, topLeft: CornerStyle.straight),
      borderRadius: DynamicBorderRadius.only(
          topLeft: DynamicRadius.circular(Length(50, unit: LengthUnit.percent)),
          bottomLeft:
              DynamicRadius.circular(Length(50, unit: LengthUnit.percent)))),
  "ChevronRight": RectangleShapeBorder(
      cornerStyles: RectangleCornerStyles.only(
          bottomRight: CornerStyle.straight, topRight: CornerStyle.straight),
      borderRadius: DynamicBorderRadius.only(
          topRight:
              DynamicRadius.circular(Length(50, unit: LengthUnit.percent)),
          bottomRight:
              DynamicRadius.circular(Length(50, unit: LengthUnit.percent)))),
  "Diamond": RectangleShapeBorder(
      cornerStyles: RectangleCornerStyles.all(CornerStyle.straight),
      borderRadius: DynamicBorderRadius.all(
          DynamicRadius.circular(Length(50, unit: LengthUnit.percent)))),
  "ArcTL": RectangleShapeBorder(
      borderRadius: DynamicBorderRadius.only(
          topLeft:
              DynamicRadius.circular(Length(100, unit: LengthUnit.percent)))),
  "ArcBR": RectangleShapeBorder(
      borderRadius: DynamicBorderRadius.only(
          bottomRight:
              DynamicRadius.circular(Length(100, unit: LengthUnit.percent)))),
  "DonutTL": RectangleShapeBorder(
      cornerStyles:
          RectangleCornerStyles.only(bottomRight: CornerStyle.concave),
      borderRadius: DynamicBorderRadius.only(
          topLeft:
              DynamicRadius.circular(Length(100, unit: LengthUnit.percent)),
          bottomRight:
              DynamicRadius.circular(Length(50, unit: LengthUnit.percent)))),
};