animated_widgets 0.0.2 copy "animated_widgets: ^0.0.2" to clipboard
animated_widgets: ^0.0.2 copied to clipboard

outdated

A new Flutter plugin.

example/lib/main.dart

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

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

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

class _MyAppState extends State<MyApp> {
  bool enabled = false;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: <Widget>[
            RaisedButton(
              onPressed: () {
                setState(() {
                  enabled = !enabled;
                });
              },
              child: Text("animate"),
            ),
            RotationAnimatedWidget(
              enabled: enabled,
              values: [Rotation.deg(z: 0), Rotation.deg(z: 90)],
              child: SizeAnimatedWidget.tween(
                enabled: enabled,
                sizeDisabled: Size(200, 200),
                sizeEnabled: Size(300, 300),
                child: FlutterLogo(),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
169
likes
0
pub points
95%
popularity

Publisher

unverified uploader

A new Flutter plugin.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on animated_widgets