path_animation 0.0.1 path_animation: ^0.0.1 copied to clipboard
A Flutter package for easy to animated the widget cross the path.
A Flutter package for easy to animated the widget cross the path.
Getting started #
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
path_animation: ^0.0.1
Usage #
import 'package:path_animation/widget/path_animation.dart';
PathAnimation(
path: Path()..addOval(const Rect.fromLTWH(100, 100, 100, 100)), // The path to set to animated.
duration: const Duration(milliseconds: 2000),
repeat: true,
curve: Curves.decelerate,
drawPath: true,
pathColor: Colors.red,
pathWidth: 1,
child: const Icon( // The Widget you want to animated to cross the path.
Icons.flutter_dash,
size: 30,
),
),