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

@@ -164,7 +164,10 @@ class AppDrawer extends StatelessWidget {
return child;
}
return child
.animate(onPlay: (c) => c.repeat(reverse: true))
.animate(
onPlay: (c) => c.repeat(reverse: true),
autoPlay: !MediaQuery.disableAnimationsOf(context),
)
.fade(duration: 1.seconds, begin: 1, end: 0.3);
},
),