From 07f300f0327f51145fd1354a91075735f6dd5bac Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62367544+tilucasoli@users.noreply.github.com> Date: Mon, 25 Jul 2022 14:20:32 -0300 Subject: [PATCH] fix: change the animation logic --- .../lib/workspace/presentation/widgets/toggle/toggle.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app_flowy/lib/workspace/presentation/widgets/toggle/toggle.dart b/frontend/app_flowy/lib/workspace/presentation/widgets/toggle/toggle.dart index 9b0d8de891..1d76083485 100644 --- a/frontend/app_flowy/lib/workspace/presentation/widgets/toggle/toggle.dart +++ b/frontend/app_flowy/lib/workspace/presentation/widgets/toggle/toggle.dart @@ -34,7 +34,7 @@ class Toggle extends StatelessWidget { AnimatedPositioned( duration: const Duration(milliseconds: 150), top: (style.height - style.thumbRadius) / 2, - left: value ? 1 : style.width - style.thumbRadius - 1, + left: value ? style.width - style.thumbRadius - 1 : 1, child: Container( height: style.thumbRadius, width: style.thumbRadius,