more_to_close constant

AnimatedVectorData const more_to_close

Animated vector for more to close.

Pairs with close_to_more.

Implementation

static const AnimatedVectorData more_to_close = AnimatedVectorData(
  viewportSize: Size(24, 24),
  duration: Duration(milliseconds: 500),
  root: RootVectorElement(
    elements: [
      GroupElement(
        pivotX: 12.0,
        pivotY: 12.0,
        elements: [
          PathElement(
            pathData: PathData.parse(
              'M 12 10 C 13.1 10 14 10.9 14 12 C 14 13.1 13.1 14 12 14 C 10.9 14 10 13.1 10 12 C 10 10.9 10.9 10 12 10 Z',
            ),
            fillColor: Color(0xFF000000),
            properties: PathAnimationProperties(
              pathData: [
                AnimationStep<PathData>(
                  tween: ConstPathDataTween(
                    begin: PathData.parse(
                      'M 12 10 C 13.1 10 14 10.9 14 12 C 14 13.1 13.1 14 12 14 C 10.9 14 10 13.1 10 12 C 10 10.9 10.9 10 12 10 Z',
                    ),
                    end: PathData.parse(
                      'M 12 10.6 C 12 10.6 13.4 12 13.4 12 C 13.4 12 12 13.4 12 13.4 C 12 13.4 10.6 12 10.6 12 C 10.6 12 12 10.6 12 10.6 Z',
                    ),
                  ),
                  interval: AnimationInterval(
                    end: Duration(milliseconds: 300),
                  ),
                  curve: ShapeShifterCurves.fastOutSlowIn,
                ),
              ],
            ),
          ),
          PathElement(
            pathData: PathData.parse(
              'M 18.3 5.7 L 5.7 18.3',
            ),
            strokeColor: Color(0xFF000000),
            strokeWidth: 2.0,
            trimStart: 0.5,
            trimEnd: 0.5,
            properties: PathAnimationProperties(
              trimStart: [
                AnimationStep<double>(
                  tween: ConstTween<double>(
                    begin: 0.5,
                    end: 0.0,
                  ),
                  interval: AnimationInterval(
                    start: Duration(milliseconds: 150),
                    end: Duration(milliseconds: 450),
                  ),
                  curve: ShapeShifterCurves.fastOutSlowIn,
                ),
              ],
              trimEnd: [
                AnimationStep<double>(
                  tween: ConstTween<double>(
                    begin: 0.5,
                    end: 1.0,
                  ),
                  interval: AnimationInterval(
                    start: Duration(milliseconds: 150),
                    end: Duration(milliseconds: 450),
                  ),
                  curve: ShapeShifterCurves.fastOutSlowIn,
                ),
              ],
            ),
          ),
          PathElement(
            pathData: PathData.parse(
              'M 18.3 18.3 L 5.7 5.7',
            ),
            strokeColor: Color(0xFF000000),
            strokeWidth: 2.0,
            trimStart: 0.5,
            trimEnd: 0.5,
            properties: PathAnimationProperties(
              trimStart: [
                AnimationStep<double>(
                  tween: ConstTween<double>(
                    begin: 0.5,
                    end: 0.0,
                  ),
                  interval: AnimationInterval(
                    start: Duration(milliseconds: 150),
                    end: Duration(milliseconds: 450),
                  ),
                  curve: ShapeShifterCurves.fastOutSlowIn,
                ),
              ],
              trimEnd: [
                AnimationStep<double>(
                  tween: ConstTween<double>(
                    begin: 0.5,
                    end: 1.0,
                  ),
                  interval: AnimationInterval(
                    start: Duration(milliseconds: 150),
                    end: Duration(milliseconds: 450),
                  ),
                  curve: ShapeShifterCurves.fastOutSlowIn,
                ),
              ],
            ),
          ),
          GroupElement(
            translateX: 12.0,
            translateY: 6.0,
            elements: [
              PathElement(
                pathData: PathData.parse(
                  'M 0 0 L 0 0',
                ),
                strokeColor: Color(0xFF000000),
                strokeWidth: 4.0,
                strokeCap: StrokeCap.round,
                properties: PathAnimationProperties(
                  strokeAlpha: [
                    AnimationStep<double>(
                      tween: ConstTween<double>(
                        begin: 1.0,
                        end: 0.0,
                      ),
                      interval: AnimationInterval(
                        start: Duration(milliseconds: 50),
                        end: Duration(milliseconds: 250),
                      ),
                      curve: ShapeShifterCurves.fastOutSlowIn,
                    ),
                  ],
                  strokeWidth: [
                    AnimationStep<double>(
                      tween: ConstTween<double>(
                        begin: 4.0,
                        end: 2.0,
                      ),
                      interval: AnimationInterval(
                        start: Duration(milliseconds: 50),
                        end: Duration(milliseconds: 250),
                      ),
                      curve: ShapeShifterCurves.fastOutSlowIn,
                    ),
                  ],
                ),
              ),
            ],
            properties: GroupAnimationProperties(
              translateY: [
                AnimationStep<double>(
                  tween: ConstTween<double>(
                    begin: 6.0,
                    end: 12.0,
                  ),
                  interval: AnimationInterval(
                    start: Duration(milliseconds: 50),
                    end: Duration(milliseconds: 250),
                  ),
                  curve: ShapeShifterCurves.fastOutSlowIn,
                ),
              ],
            ),
          ),
          GroupElement(
            translateX: 12.0,
            translateY: 18.0,
            elements: [
              PathElement(
                pathData: PathData.parse(
                  'M 0 0 L 0 0',
                ),
                strokeColor: Color(0xFF000000),
                strokeWidth: 4.0,
                strokeCap: StrokeCap.round,
                properties: PathAnimationProperties(
                  strokeAlpha: [
                    AnimationStep<double>(
                      tween: ConstTween<double>(
                        begin: 1.0,
                        end: 0.0,
                      ),
                      interval: AnimationInterval(
                        start: Duration(milliseconds: 50),
                        end: Duration(milliseconds: 250),
                      ),
                      curve: ShapeShifterCurves.fastOutSlowIn,
                    ),
                  ],
                  strokeWidth: [
                    AnimationStep<double>(
                      tween: ConstTween<double>(
                        begin: 4.0,
                        end: 2.0,
                      ),
                      interval: AnimationInterval(
                        start: Duration(milliseconds: 50),
                        end: Duration(milliseconds: 250),
                      ),
                      curve: ShapeShifterCurves.fastOutSlowIn,
                    ),
                  ],
                ),
              ),
            ],
            properties: GroupAnimationProperties(
              translateY: [
                AnimationStep<double>(
                  tween: ConstTween<double>(
                    begin: 18.0,
                    end: 12.0,
                  ),
                  interval: AnimationInterval(
                    start: Duration(milliseconds: 50),
                    end: Duration(milliseconds: 250),
                  ),
                  curve: ShapeShifterCurves.fastOutSlowIn,
                ),
              ],
            ),
          ),
        ],
        properties: GroupAnimationProperties(
          rotation: [
            AnimationStep<double>(
              tween: ConstTween<double>(
                begin: 0.0,
                end: 180.0,
              ),
              interval: AnimationInterval(
                end: Duration(milliseconds: 500),
              ),
              curve: ShapeShifterCurves.fastOutSlowIn,
            ),
          ],
        ),
      ),
    ],
  ),
);