From 30a4dabbd84d0e3d552ac458e09dcf3f68b1b208 Mon Sep 17 00:00:00 2001 From: CatHood0 Date: Sun, 18 Aug 2024 08:25:03 -0400 Subject: [PATCH] Fix: last version dependency has weird behaviors with accents --- example/lib/screens/quill/quill_screen.dart | 2 -- lib/src/editor/widgets/text/text_line.dart | 4 +--- pubspec.yaml | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) 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