BlackQueen constructor
BlackQueen({
- double size = 45.0,
- dynamic fillColor = Colors.black,
- dynamic strokeColor = Colors.black,
- dynamic decorationColor = Colors.white,
size (double) : default to 45.0
Implementation
BlackQueen({
double size = 45.0,
this.fillColor = Colors.black,
this.strokeColor = Colors.black,
this.decorationColor = Colors.white,
}) : super(
baseImageSize: 45.0,
requestSize: size,
painter: VectorImagePainter(
vectorDefinition: <VectorDrawableElement>[
VectorImageGroup(
children: <VectorDrawableElement>[
VectorImageGroup(
children: <VectorDrawableElement>[
VectorCircle(
position: Offset(6.0, 12.0),
radius: 2.75,
drawingParameters: DrawingParameters(),
),
VectorCircle(
position: Offset(14.0, 9.0),
radius: 2.75,
drawingParameters: DrawingParameters(),
),
VectorCircle(
position: Offset(22.5, 8.0),
radius: 2.75,
drawingParameters: DrawingParameters(),
),
VectorCircle(
position: Offset(31.0, 9.0),
radius: 2.75,
drawingParameters: DrawingParameters(),
),
VectorCircle(
position: Offset(39.0, 12.0),
radius: 2.75,
drawingParameters: DrawingParameters(),
),
],
drawingParameters: DrawingParameters(
fillColor: fillColor,
strokeColor: null,
),
),
VectorImagePathDefinition(
path:
"M 9,26 C 17.5,24.5 30,24.5 36,26 L 38.5,13.5 L 31,25 L 30.7,10.9 "
"L 25.5,24.5 L 22.5,10 L 19.5,24.5 L 14.3,10.9 L 14,25 L 6.5,13.5 "
"L 9,26 z",
drawingParameters: DrawingParameters(
strokeLineCap: StrokeCap.butt,
strokeColor: strokeColor,
),
),
VectorImagePathDefinition(
path:
"M 9,26 C 9,28 10.5,28 11.5,30 C 12.5,31.5 12.5,31 12,33.5 C 10.5,"
"34.5 10.5,36 10.5,36 C 9,37.5 11,38.5 11,38.5 C 17.5,39.5 27.5,39.5"
" 34,38.5 C 34,38.5 35.5,37.5 34,36 C 34,36 34.5,34.5 33,33.5 C "
"32.5,31 32.5,31.5 33.5,30 C 34.5,28 36,28 36,26 C 27.5,24.5 17.5,"
"24.5 9,26 z",
drawingParameters: DrawingParameters(
strokeLineCap: StrokeCap.butt,
),
),
VectorImagePathDefinition(
path: "M 11,38.5 A 35,35 1 0 0 34,38.5",
drawingParameters: DrawingParameters(
strokeLineCap: StrokeCap.butt,
),
),
VectorImagePathDefinition(
path: "M 11,29 A 35,35 1 0 1 34,29",
drawingParameters: DrawingParameters(
fillColor: null,
strokeColor: decorationColor,
),
),
VectorImagePathDefinition(
path: "M 12.5,31.5 L 32.5,31.5",
drawingParameters: DrawingParameters(
fillColor: null,
strokeColor: decorationColor,
),
),
VectorImagePathDefinition(
path: "M 11.5,34.5 A 35,35 1 0 0 33.5,34.5",
drawingParameters: DrawingParameters(
fillColor: null,
strokeColor: decorationColor,
),
),
VectorImagePathDefinition(
path: "M 10.5,37.5 A 35,35 1 0 0 34.5,37.5",
drawingParameters: DrawingParameters(
fillColor: null,
strokeColor: decorationColor,
),
),
],
drawingParameters: DrawingParameters(
fillColor: fillColor,
strokeColor: strokeColor,
strokeWidth: 1.5,
strokeLineMiterLimit: 4.0,
strokeLineJoin: StrokeJoin.round,
strokeLineCap: StrokeCap.round,
),
)
],
),
);