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