close_to_menu constant

AnimatedVectorData const close_to_menu

Animated vector for close to menu.

Pairs with menu_to_close.

Implementation

static const AnimatedVectorData close_to_menu = 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 18.3 5.7 L 5.7 18.3',
            ),
            strokeColor: Color(0xFF000000),
            strokeWidth: 2.0,
            properties: PathAnimationProperties(
              pathData: [
                AnimationStep<PathData>(
                  tween: ConstPathDataTween(
                    begin: PathData.parse(
                      'M 18.3 5.7 L 5.7 18.3',
                    ),
                    end: PathData.parse(
                      'M 21 7 L 3 7',
                    ),
                  ),
                  interval: AnimationInterval(
                    start: Duration(milliseconds: 50),
                    end: Duration(milliseconds: 350),
                  ),
                  curve: ShapeShifterCurves.fastOutSlowIn,
                ),
              ],
            ),
          ),
          PathElement(
            pathData: PathData.parse(
              'M 3 12 L 21 12',
            ),
            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: 350),
                  ),
                  curve: ShapeShifterCurves.fastOutSlowIn,
                ),
              ],
              trimEnd: [
                AnimationStep<double>(
                  tween: ConstTween<double>(
                    begin: 0.5,
                    end: 1.0,
                  ),
                  interval: AnimationInterval(
                    start: Duration(milliseconds: 150),
                    end: Duration(milliseconds: 350),
                  ),
                  curve: ShapeShifterCurves.fastOutSlowIn,
                ),
              ],
            ),
          ),
          PathElement(
            pathData: PathData.parse(
              'M 18.3 18.3 L 5.7 5.7',
            ),
            strokeColor: Color(0xFF000000),
            strokeWidth: 2.0,
            properties: PathAnimationProperties(
              pathData: [
                AnimationStep<PathData>(
                  tween: ConstPathDataTween(
                    begin: PathData.parse(
                      'M 18.3 18.3 L 5.7 5.7',
                    ),
                    end: PathData.parse(
                      'M 21 17 L 3 17',
                    ),
                  ),
                  interval: AnimationInterval(
                    start: Duration(milliseconds: 50),
                    end: Duration(milliseconds: 350),
                  ),
                  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,
            ),
          ],
        ),
      ),
    ],
  ),
);