From 60ef316a5ec460bc9a18c3c67d0df17ef85bc8ea Mon Sep 17 00:00:00 2001 From: Andy Trand Date: Fri, 21 Jan 2022 18:45:49 +0200 Subject: [PATCH] changed customStyles fix (#599) --- lib/src/widgets/raw_editor.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/widgets/raw_editor.dart b/lib/src/widgets/raw_editor.dart index f8189053..6d857d5e 100644 --- a/lib/src/widgets/raw_editor.dart +++ b/lib/src/widgets/raw_editor.dart @@ -603,6 +603,11 @@ class RawEditorState extends EditorState openConnectionIfNeeded(); } } + + // in case customStyles changed in new widget + if (widget.customStyles != null) { + _styles = _styles!.merge(widget.customStyles!); + } } bool _shouldShowSelectionHandles() {