animated_cross 1.0.0
animated_cross: ^1.0.0 copied to clipboard

An animated cross icon widget for Flutter.

animated_cross #

pub package

AnimatedCross is a Flutter package with a simple implementation of an animated cross icon.

Installation #

Add this to your pubspec.yaml:

dependencies:
    animated_cross: ^1.0.0

Usage #

Import #

import 'package:animated_cross/animated_cross.dart';

Simple Implementation #

AnimationController(vsync: this, duration: Duration(seconds: 1));
Animation _animation = new Tween<double>(begin: 0, end: 1)
  .animate(new CurvedAnimation(
    parent: _animationController, 
    curve: Curves.easeInOutCirc)
  );

void _showCross() {
  _animation.forward();
}

void _resetCross() {
  _animation.reverse();
}

AnimatedCross(
  progress: _animation,
  size: 200,
)

Contributions #

All contributions are welcome!

0
likes
110
pub points
0%
popularity

Publisher

edgington.dev

An animated cross icon widget for Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on animated_cross