From 2b7282195b0496fa23d21231ca78a575944d59a2 Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Tue, 9 May 2023 22:33:42 +0800 Subject: [PATCH] feat: improve sidebar item dragged appearance (#2471) --- .../workspace/presentation/home/menu/app/section/section.dart | 4 ++++ .../lib/workspace/presentation/home/menu/menu.dart | 2 ++ 2 files changed, 6 insertions(+) diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/app/section/section.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/app/section/section.dart index eced25bf7b..3aab3b1863 100644 --- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/app/section/section.dart +++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/app/section/section.dart @@ -61,6 +61,10 @@ class ViewSection extends StatelessWidget { .add(ViewSectionEvent.moveView(oldIndex, index)); }, ignorePrimaryScrollController: true, + buildDraggableFeedback: (context, constraints, child) => ConstrainedBox( + constraints: constraints, + child: Material(color: Colors.transparent, child: child), + ), children: children, ); } diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/menu.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/menu.dart index f1354f64ed..043f107e34 100644 --- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/menu.dart +++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/menu.dart @@ -149,6 +149,8 @@ class HomeMenu extends StatelessWidget { ), ); }, + proxyDecorator: (child, index, animation) => + Material(color: Colors.transparent, child: child), ); }, ),