1
Fork 0

dart(freeform-gradient): chore: removed animation

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2021-08-05 16:47:16 +03:00 committed by prescientmoon
parent 06146c53cd
commit 603bed7f80
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -8,29 +8,7 @@ import 'package:vector_math/vector_math.dart' as vector;
void main() => runApp(Root()); void main() => runApp(Root());
class Root extends StatefulWidget { class Root extends StatelessWidget {
const Root({
Key key,
}) : super(key: key);
@override
RootState createState() => RootState();
}
class RootState extends State<Root> {
double angle = 0;
@override
initState() {
super.initState();
Timer.periodic(Duration(milliseconds: 10), (timer) {
setState(() {
angle += 0.04;
});
});
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return MaterialApp(