From 603bed7f80e9ee9f3c31dd82ca562896d3ce111d Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Thu, 5 Aug 2021 16:47:16 +0300 Subject: [PATCH] dart(freeform-gradient): chore: removed animation Signed-off-by: prescientmoon --- dart/freeform-gradient/lib/main.dart | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/dart/freeform-gradient/lib/main.dart b/dart/freeform-gradient/lib/main.dart index f425ce9..895a0c8 100644 --- a/dart/freeform-gradient/lib/main.dart +++ b/dart/freeform-gradient/lib/main.dart @@ -8,29 +8,7 @@ import 'package:vector_math/vector_math.dart' as vector; void main() => runApp(Root()); -class Root extends StatefulWidget { - const Root({ - Key key, - }) : super(key: key); - - @override - RootState createState() => RootState(); -} - -class RootState extends State { - double angle = 0; - - @override - initState() { - super.initState(); - - Timer.periodic(Duration(milliseconds: 10), (timer) { - setState(() { - angle += 0.04; - }); - }); - } - +class Root extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp(