widget_animator 1.0.0+7 copy "widget_animator: ^1.0.0+7" to clipboard
widget_animator: ^1.0.0+7 copied to clipboard

Animate your widgets fast and easy with this package. Just wrap ANY widgets that you'd like to animate and wallah, your widget is now animating.

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Widget Animator Demo',
      theme: ThemeData(
        primaryColor: Colors.white,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        title: Text('Widget Animator Demo'),
        elevation: 0,
      ),
      body: ListView.builder(
        itemCount: 34,
        itemBuilder: (context, i) {
          if (i == 0) {
            return Padding(
              padding: EdgeInsets.all(16),
              child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                children: <Widget>[
                  for (int i = 1; i <= 3; i++) ...[
                    WidgetAnimator(
                      child: FloatingActionButton(
                        elevation: 0,
                        backgroundColor: Colors.black87,
                        child: Icon(
                          i == 1
                              ? Icons.access_alarm
                              : i == 2 ? Icons.map : Icons.email,
                        ),
                        onPressed: () {},
                      ),
                    )
                  ]
                ],
              ),
            );
          }

          return WidgetAnimator(
            child: ListTile(
              title: Text('Wiget Animator is fun $i'),
              subtitle: Text('Easy animations $i'),
              leading: Padding(
                padding: EdgeInsets.only(top: 8),
                child: Icon(
                  Icons.check_circle,
                  color: Colors.black87,
                ),
              ),
              trailing: Icon(Icons.chevron_right),
              onTap: () {},
            ),
          );
        },
      ),
    );
  }
}
12
likes
20
points
0
downloads

Publisher

verified publisherdev-anton.engineer

Weekly Downloads

Animate your widgets fast and easy with this package. Just wrap ANY widgets that you'd like to animate and wallah, your widget is now animating.

License

unknown (license)

Dependencies

flutter

More

Packages that depend on widget_animator