Skip to content

Commit

Permalink
Improved anim speed of switchers
Browse files Browse the repository at this point in the history
  • Loading branch information
Clon1998 committed Apr 20, 2023
1 parent f4d411d commit 8bf8082
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ToolheadInfoTable extends ConsumerWidget {

return AnimatedSwitcher(
switchInCurve: Curves.easeInOutBack,
duration: const Duration(milliseconds: 700),
duration: kThemeAnimationDuration,
transitionBuilder: (child, anim) => SizeTransition(
sizeFactor: anim,
child: FadeTransition(
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/screens/dashboard/components/webcams/cam_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class CamCard extends ConsumerWidget {
padding: const EdgeInsets.fromLTRB(8, 8, 8, 10),
child: AnimatedSwitcher(
switchInCurve: Curves.easeInOutBack,
duration: const Duration(milliseconds: 700),
duration: const Duration(milliseconds: 400),
transitionBuilder: (child, anim) => SizeTransition(
sizeFactor: anim,
child: FadeTransition(
Expand Down

0 comments on commit 8bf8082

Please sign in to comment.