feat: add accessibility setting and conditionally disable animations

This commit is contained in:
Anton Stubenbord
2023-11-16 23:44:02 +01:00
parent a17f658df5
commit 12be81d93b
21 changed files with 304 additions and 77 deletions

View File

@@ -1,7 +1,8 @@
import 'package:flutter/material.dart';
class AnimatedTouchBubblePart extends StatefulWidget {
const AnimatedTouchBubblePart({super.key,
const AnimatedTouchBubblePart({
super.key,
required this.dragging,
required this.size,
});
@@ -22,6 +23,7 @@ class _AnimatedTouchBubblePartState extends State<AnimatedTouchBubblePart>
@override
void didChangeDependencies() {
super.didChangeDependencies();
_controller = AnimationController(
duration: const Duration(milliseconds: 1000),
vsync: this,
@@ -40,7 +42,6 @@ class _AnimatedTouchBubblePartState extends State<AnimatedTouchBubblePart>
);
_controller.repeat();
super.didChangeDependencies();
}
@override