Fix analysis error

pull/1102/head
X Code 2 years ago
parent 97fd5d2eca
commit 76ea6c0e7e
  1. 3
      lib/src/translations/toolbar.i18n.dart
  2. 11
      lib/src/widgets/text_selection.dart

@ -906,7 +906,8 @@ extension Localization on String {
'Gallery': 'Galeri',
'Link': 'Pautan',
'Please first select some text to transform into a link.':
'Sila pilih beberapa patah perkataan untuk diubah menjadi pautan.',
'Sila pilih beberapa patah perkataan'
' untuk diubah menjadi pautan.',
'Open': 'Buka',
'Copy': 'Salin',
'Remove': 'Buang',

@ -83,10 +83,13 @@ 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();
// 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
clipboardStatus.update();
_toolbarController = AnimationController(
duration: const Duration(milliseconds: 150), vsync: overlay);

Loading…
Cancel
Save