Skip to content

Commit

Permalink
fix: drag and drop row document full page (#6589)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xazin authored Oct 21, 2024
1 parent 1d9876a commit 8276c5d
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 8276c5d

Please sign in to comment.