Skip to content

Commit

Permalink
chore: merge refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
squidrye committed Oct 27, 2023
1 parent 14176ed commit 615ad01
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ class _AppFlowyEditorPageState extends State<AppFlowyEditorPage> {
editorScrollController: editorScrollController,
toolbarBuilder: (context, anchor) {
return AdaptiveTextSelectionToolbar.editable(
onLiveTextInput: () {},
clipboardStatus: ClipboardStatus.pasteable,
onCopy: () => copyCommand.execute(editorState),
onCut: () => cutCommand.execute(editorState),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class CombinedDraggableItem<T extends Object> extends StatefulWidget {
this.onWillAccept,
this.onMove,
this.onLeave,
this.onDragging,
this.dragAnchorStrategy,
this.enableAutoScroll = true,
this.hitTestSize = const Size(100, 100),
Expand All @@ -24,6 +25,7 @@ class CombinedDraggableItem<T extends Object> extends StatefulWidget {
final Widget? feedback;
final Widget? childWhenDragging;

final void Function(bool)? onDragging;
final DragTargetAccept<T>? onAccept;
final DragTargetWillAccept<T>? onWillAccept;
final DragTargetMove<T>? onMove;
Expand Down Expand Up @@ -56,6 +58,7 @@ class _CombinedDraggableItemState<T extends Object>
onMove: widget.onMove,
onLeave: widget.onLeave,
child: DraggableItem(
onDragging: widget.onDragging,
data: widget.data,
childWhenDragging: widget.childWhenDragging,
dragAnchorStrategy: widget.dragAnchorStrategy,
Expand Down

0 comments on commit 615ad01

Please sign in to comment.