update clipboard status prior to showing selected text overlay (#1096)

pull/1097/head
Michael Allen 2 years ago committed by GitHub
parent 852c8b7f18
commit 9da4f6330d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      lib/src/widgets/text_selection.dart

@ -83,6 +83,11 @@ class EditorTextSelectionOverlay {
}) {
final overlay = Overlay.of(context, rootOverlay: true);
// Clipboard status is only checked on first instance of ClipboardStatusNotifier
// if state has changed after creation, but prior to our listener being created
// we won't know the status unless there is forced update i.e. occasionally no paste
this.clipboardStatus.update();
_toolbarController = AnimationController(
duration: const Duration(milliseconds: 150), vsync: overlay);
}

Loading…
Cancel
Save