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: drag and drop row document full page (#6589)

Mathias Mogensen8276c5db57de
diff --git a/frontend/appflowy_flutter/lib/plugins/database_document/database_document_page.dart b/frontend/appflowy_flutter/lib/plugins/database_document/database_document_page.dart
index a7184122ce..2150fcc164 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_document/database_document_page.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_document/database_document_page.dart
@@ -1,3 +1,4 @@
+import 'package:appflowy/plugins/document/presentation/editor_drop_handler.dart';
import 'package:flutter/material.dart';
import 'package:appflowy/plugins/database/application/row/related_row_detail_bloc.dart';
@@ -105,15 +106,20 @@ class _DatabaseDocumentPageState extends State<DatabaseDocumentPage> {
}
Widget _buildEditorPage(BuildContext context, DocumentState state) {
- final appflowyEditorPage = AppFlowyEditorPage(
+ final appflowyEditorPage = EditorDropHandler(
+ viewId: widget.view.id,
editorState: state.editorState!,
- styleCustomizer: EditorStyleCustomizer(
- context: context,
- padding: EditorStyleCustomizer.documentPadding,
+ isLocalMode: context.read<DocumentBloc>().isLocalMode,
+ child: AppFlowyEditorPage(
+ editorState: state.editorState!,
+ styleCustomizer: EditorStyleCustomizer(
+ context: context,
+ padding: EditorStyleCustomizer.documentPadding,
+ ),
+ header: _buildDatabaseDataContent(context, state.editorState!),
+ initialSelection: widget.initialSelection,
+ useViewInfoBloc: false,
),
- header: _buildDatabaseDataContent(context, state.editorState!),
- initialSelection: widget.initialSelection,
- useViewInfoBloc: false,
);
return Column(