From 7654e594308332148abe8ccb97641138fd0b02dc Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Sat, 27 Jul 2024 22:48:33 +0800 Subject: [PATCH] chore: add arrow down icon when hovering on workspace button --- .../home/menu/sidebar/workspace/sidebar_workspace.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/sidebar_workspace.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/sidebar_workspace.dart index 2fa91a8da1..0926fc54a1 100644 --- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/sidebar_workspace.dart +++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/sidebar_workspace.dart @@ -1,3 +1,4 @@ +import 'package:appflowy/generated/flowy_svgs.g.dart'; import 'package:appflowy/generated/locale_keys.g.dart'; import 'package:appflowy/plugins/document/presentation/editor_plugins/openai/widgets/loading.dart'; import 'package:appflowy/workspace/application/user/user_workspace_bloc.dart'; @@ -198,9 +199,9 @@ class _SidebarSwitchWorkspaceButtonState ), ); }, - child: FlowyButton( + child: FlowyIconTextButton( margin: EdgeInsets.zero, - text: SizedBox( + textBuilder: (onHover) => SizedBox( height: 30, child: Row( children: [ @@ -229,6 +230,10 @@ class _SidebarSwitchWorkspaceButtonState ), ), const HSpace(4), + if (onHover) + const FlowySvg( + FlowySvgs.workspace_drop_down_menu_show_s, + ), ], ), ),