diff --git a/example/lib/screens/quill/quill_screen.dart b/example/lib/screens/quill/quill_screen.dart index 5366a543..b47a8c3d 100644 --- a/example/lib/screens/quill/quill_screen.dart +++ b/example/lib/screens/quill/quill_screen.dart @@ -43,8 +43,6 @@ class _QuillScreenState extends State { void initState() { super.initState(); _controller.document = widget.args.document; - SpellcheckerServiceProvider.setInstance( - SimpleSpellCheckerImpl(language: 'en')); } @override diff --git a/lib/src/editor/widgets/text/text_line.dart b/lib/src/editor/widgets/text/text_line.dart index 9251c88d..9c56dde5 100644 --- a/lib/src/editor/widgets/text/text_line.dart +++ b/lib/src/editor/widgets/text/text_line.dart @@ -404,9 +404,7 @@ class _TextLineState extends State { } } - // verify is node is not link because we never need check a link word - // and avoid to show highlighting when is only reading - if (!isLink && !widget.readOnly && !widget.line.style.attributes.containsKey('code-block')) { + if (!isLink && !widget.readOnly && !widget.line.style.attributes.containsKey('code-block') && !kIsWeb) { final service = SpellcheckerServiceProvider.instance; final spellcheckedSpans = service.fetchSpellchecker(textNode.value); if (spellcheckedSpans != null && spellcheckedSpans.isNotEmpty) { diff --git a/pubspec.yaml b/pubspec.yaml index a64a357f..43b568dc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -45,7 +45,7 @@ dependencies: # Dart Packages intl: ^0.19.0 dart_quill_delta: ^10.0.0 - simple_spell_checker: ^1.0.4 + simple_spell_checker: ^1.0.6 collection: ^1.17.0 quiver: ^3.2.1 equatable: ^2.0.5