From fdbecd7f100bb1a8009ee2085ee280243d3b5dd8 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Tue, 9 Aug 2022 10:46:51 +0800 Subject: [PATCH] fix: typo --- .../flowy_editor/lib/render/rich_text/rich_text_style.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/rich_text_style.dart b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/rich_text_style.dart index 29677cdce9..daad186fc2 100644 --- a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/rich_text_style.dart +++ b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/rich_text_style.dart @@ -146,7 +146,7 @@ extension DeltaAttributesExtensions on Attributes { return null; } - Color? get hightlightColor { + Color? get highlightColor { if (containsKey(StyleKey.highlightColor) && this[StyleKey.highlightColor] is String) { return Color( @@ -228,7 +228,7 @@ class RichTextStyle { } Color get backgroundColor { - return attributes.hightlightColor ?? Colors.transparent; + return attributes.highlightColor ?? Colors.transparent; } // font size