path_animation 1.1.0 copy "path_animation: ^1.1.0" to clipboard
path_animation: ^1.1.0 copied to clipboard

A Flutter package, path animation - that is used to moving the widget on given path.

A Flutter package, path animation - that is used to moving the widget on given path.

Screenshot

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: ^1.1.0

Usage #

import 'package:path_animation/widget/path_animation.dart';

    PathAnimation(
        path: Path()..addOval(const Rect.fromLTWH(0, 0, 100, 100)), // Set the path.
        duration: const Duration(milliseconds: 2000),
        repeat: true,
        reverse: false,
        curve: Curves.decelerate,
        startAnimatedPercent: 0.25,
        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,
        ),
    ),
9
likes
140
pub points
63%
popularity

Publisher

verified publisherhermiths.info

A Flutter package, path animation - that is used to moving the widget on given path.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on path_animation