Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: side panel animation (#3605)

Sumit Banwakadef60462a85316
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/desktop_home_screen.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/desktop_home_screen.dart
index f2433ac657..95d6341e15 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/desktop_home_screen.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/desktop_home_screen.dart
@@ -255,7 +255,7 @@ class DesktopHomeScreen extends StatelessWidget {
top: 0,
animate: true,
)
- .animate(layout.animDuration, Curves.easeOut),
+ .animate(layout.animDuration, Curves.easeOutQuad),
bubble
.positioned(
right: 20,
@@ -268,6 +268,7 @@ class DesktopHomeScreen extends StatelessWidget {
duration: layout.animDuration.inMilliseconds * 0.001,
closeX: layout.editPanelWidth,
isClosed: !layout.showEditPanel,
+ curve: Curves.easeOutQuad,
)
.positioned(
right: 0,
@@ -279,18 +280,18 @@ class DesktopHomeScreen extends StatelessWidget {
.animatedPanelX(
closeX: -layout.menuWidth,
isClosed: !layout.showMenu,
+ curve: Curves.easeOutQuad,
+ duration: layout.animDuration.inMilliseconds * 0.001,
)
.positioned(
left: 0,
top: 0,
width: layout.menuWidth,
bottom: 0,
- animate: true,
- )
- .animate(layout.animDuration, Curves.easeOut),
+ ),
homeMenuResizer
.positioned(left: layout.menuWidth - 5)
- .animate(layout.animDuration, Curves.easeOut),
+ .animate(layout.animDuration, Curves.easeOutQuad),
],
);
}