From 9d1ad3f3bb501be9739c460d690fac0395a4592e Mon Sep 17 00:00:00 2001 From: Aaldn Date: Sun, 11 Feb 2024 17:03:36 +0100 Subject: [PATCH] feat: set dark mode switch animation --- .../features/general/presentation/widgets/dark_mode_switch.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/features/general/presentation/widgets/dark_mode_switch.dart b/lib/src/features/general/presentation/widgets/dark_mode_switch.dart index fbfe723..8a768a0 100644 --- a/lib/src/features/general/presentation/widgets/dark_mode_switch.dart +++ b/lib/src/features/general/presentation/widgets/dark_mode_switch.dart @@ -17,6 +17,7 @@ class DarkModeSwitch extends ConsumerWidget { spacing: 8, height: 36, indicatorSize: const Size.square(32), + animationCurve: Curves.decelerate, style: ToggleStyle( backgroundColor: Theme.of(context).colorScheme.primary, borderColor: Colors.transparent,