dart(freeform-gradient): chore: removed animation
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
06146c53cd
commit
603bed7f80
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue