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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix(flutter_desktop): clicking on empty space when editing a cell sho… (#6949)
Richard Shiue7b93bbe5ffac
diff --git a/frontend/appflowy_flutter/integration_test/desktop/database/database_calendar_test.dart b/frontend/appflowy_flutter/integration_test/desktop/database/database_calendar_test.dartindex eb1d67ffcd..d6df648bb3 100644--- a/frontend/appflowy_flutter/integration_test/desktop/database/database_calendar_test.dart+++ b/frontend/appflowy_flutter/integration_test/desktop/database/database_calendar_test.dart@@ -301,6 +301,7 @@ void main() {await tester.createOption(name: "qwer");await tester.selectOption(name: "asdf");await tester.dismissCellEditor();+ await tester.dismissCellEditor();await tester.tapDatabaseFilterButton();await tester.tapCreateFilterByFieldType(FieldType.MultiSelect, "Tags");@@ -332,6 +333,7 @@ void main() {await tester.tapButton(finderForFieldType(FieldType.MultiSelect));await tester.selectOption(name: "asdf");await tester.dismissCellEditor();+ await tester.dismissCellEditor();tester.assertNumberOfEventsInCalendar(0);diff --git a/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_date_cell.dart b/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_date_cell.dartindex 9d0c0f0324..f10f9a9279 100644--- a/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_date_cell.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_date_cell.dart@@ -31,6 +31,7 @@ class DesktopRowDetailDateCellSkin extends IEditableDateCellSkin {direction: PopoverDirection.bottomWithLeftAligned,constraints: BoxConstraints.loose(const Size(260, 620)),margin: EdgeInsets.zero,+ asBarrier: true,child: Container(alignment: AlignmentDirectional.centerStart,padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 6),diff --git a/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_media_cell.dart b/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_media_cell.dartindex 68c5191682..34d8a18ad8 100644--- a/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_media_cell.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_media_cell.dart@@ -252,6 +252,7 @@ class _AddFileButtonState extends State<_AddFileButton> {direction: widget.direction,constraints: const BoxConstraints(maxWidth: _menuWidth),margin: EdgeInsets.zero,+ asBarrier: true,onClose: () =>context.read<EditorDropManagerState>().remove(_dropFileKey),popupBuilder: (_) {@@ -458,6 +459,7 @@ class _FilePreviewRenderState extends State<_FilePreviewRender> {offset: const Offset(0, 5),triggerActions: PopoverTriggerFlags.none,onClose: () => setState(() => isSelected = false),+ asBarrier: true,popupBuilder: (popoverContext) => MultiBlocProvider(providers: [BlocProvider.value(value: context.read<RowDetailBloc>()),diff --git a/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_relation_cell.dart b/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_relation_cell.dartindex 996d04267c..b3096d49e4 100644--- a/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_relation_cell.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_relation_cell.dart@@ -24,6 +24,7 @@ class DesktopRowDetailRelationCellSkin extends IEditableRelationCellSkin {direction: PopoverDirection.bottomWithLeftAligned,constraints: const BoxConstraints(maxWidth: 400, maxHeight: 400),margin: EdgeInsets.zero,+ asBarrier: true,onClose: () => cellContainerNotifier.isFocus = false,popupBuilder: (context) {return BlocProvider.value(diff --git a/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_select_option_cell.dart b/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_select_option_cell.dartindex 6eab6438dc..3d41a824ce 100644--- a/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_select_option_cell.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_select_option_cell.dart@@ -25,6 +25,7 @@ class DesktopRowDetailSelectOptionCellSkincontroller: popoverController,constraints: const BoxConstraints.tightFor(width: 300),margin: EdgeInsets.zero,+ asBarrier: true,triggerActions: PopoverTriggerFlags.none,direction: PopoverDirection.bottomWithLeftAligned,onClose: () => cellContainerNotifier.isFocus = false,