diff --git a/lib/src/editor/editor_component/service/selection/mobile_selection_service.dart b/lib/src/editor/editor_component/service/selection/mobile_selection_service.dart index d563f70bf..8902be69c 100644 --- a/lib/src/editor/editor_component/service/selection/mobile_selection_service.dart +++ b/lib/src/editor/editor_component/service/selection/mobile_selection_service.dart @@ -393,7 +393,7 @@ class _MobileSelectionServiceWidgetState final selection = editorState.selection; WidgetsBinding.instance.addPostFrameCallback((timeStamp) { - selectionNotifierAfterLayout.value = selection; + if (mounted) selectionNotifierAfterLayout.value = selection; }); if (currentSelection.value != selection) {