mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
@ -180,14 +180,16 @@ class OutlineItemWidget extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateBlockSelection(BuildContext context) {
|
void updateBlockSelection(BuildContext context) async {
|
||||||
final editorState = context.read<EditorState>();
|
final editorState = context.read<EditorState>();
|
||||||
editorState.selectionType = SelectionType.block;
|
editorState.selectionType = SelectionType.block;
|
||||||
editorState.selection = Selection.collapse(
|
editorState.selection = Selection.collapse(
|
||||||
node.path,
|
node.path,
|
||||||
node.delta?.length ?? 0,
|
node.delta?.length ?? 0,
|
||||||
);
|
);
|
||||||
editorState.selectionType = null;
|
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
|
||||||
|
editorState.selectionType = null;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user