Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save e200/d6a0c6997ead642fdc82fdc2b63c1020 to your computer and use it in GitHub Desktop.
Save e200/d6a0c6997ead642fdc82fdc2b63c1020 to your computer and use it in GitHub Desktop.
class AnimatedRotationButton extends ImplicitlyAnimatedWidget {
final Widget child;
final double angle;
final Function onPressed;
const AnimatedRotationButton({
Key key,
this.child,
this.angle,
this.onPressed,
}) : super(
key: key,
duration: const Duration(
milliseconds: 300,
),
);
@override
ImplicitlyAnimatedWidgetState createState() => _AnimatedRotationButtonState();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment