浏览代码

fix: typo

Lucas.Xu 2 年之前
父节点
当前提交
fdbecd7f10
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/rich_text_style.dart

+ 2 - 2
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