diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/folder/_section_folder.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/folder/_section_folder.dart index bde26d3955..ecd7b5f9de 100644 --- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/folder/_section_folder.dart +++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/folder/_section_folder.dart @@ -3,7 +3,6 @@ import 'package:appflowy/workspace/application/menu/sidebar_sections_bloc.dart'; import 'package:appflowy/workspace/application/sidebar/folder/folder_bloc.dart'; import 'package:appflowy/workspace/application/tabs/tabs_bloc.dart'; import 'package:appflowy/workspace/application/user/user_workspace_bloc.dart'; -import 'package:appflowy/workspace/application/view/view_bloc.dart'; import 'package:appflowy/workspace/presentation/home/menu/sidebar/folder/_folder_header.dart'; import 'package:appflowy/workspace/presentation/home/menu/sidebar/rename_view_dialog.dart'; import 'package:appflowy/workspace/presentation/home/menu/view/view_item.dart'; @@ -91,17 +90,6 @@ class SectionFolder extends StatelessWidget { } context.read().openPlugin(view); - - // Delay to expand the view to prevent the view from being - // expanded when the user is trying to open the view in a new tab - // This will improve the animation performance - Future.delayed(const Duration(milliseconds: 50), () { - if (viewContext.mounted) { - viewContext - .read() - .add(const ViewEvent.setIsExpanded(true)); - } - }); }, onTertiarySelected: (view, viewContext) => context.read().openTab(view),