This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Continuous rotattion of a widget | |
/// [widget] - Widget to rotate {required} | |
/// [duration] - Duration of the rotation (default [Duration(seconds:15)]) | |
import 'package:flutter/material.dart'; | |
class RotatingAnimationWidget extends StatefulWidget { | |
final Widget rotatingWidget; | |
final Duration duration; | |
const RotatingAnimationWidget(this.rotatingWidget, {this.duration}) : assert(rotatingWidget != null); | |
_RotatingAnimationWidget createState() => _RotatingAnimationWidget(); |