animate_icons 0.0.3 copy "animate_icons: ^0.0.3" to clipboard
animate_icons: ^0.0.3 copied to clipboard

outdated

This is a plugin with the help of which you can animate between any two icons like we do in AnimatedIcon widget given to us by default. We have a very few options to us with the default AnimatedIcons [...]

example/lib/main.dart

import 'package:animate_icons/animate_icons.dart';
import 'package:flutter/material.dart';

void main() => runApp(MaterialApp(home: MyApp()));

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: AnimateIcons(
          startIcon: Icons.bluetooth,
          endIcon: Icons.bluetooth_disabled,
          size: 60.0,
          onEndIconPress: () {
            print("Clicked on End Icon");
          },
          onStartIconPress: () {
            print("Clicked on Start Icon");
          },
          duration: Duration(milliseconds: 600),
          clockwise: true,
          color: Colors.deepPurple,
        ),
      ),
    );
  }
}
204
likes
0
pub points
94%
popularity

Publisher

unverified uploader

This is a plugin with the help of which you can animate between any two icons like we do in AnimatedIcon widget given to us by default. We have a very few options to us with the default AnimatedIcons but with this pacakge you can animate any two icons you want, provided by any Icon package.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animate_icons