소스 검색

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;
     return null;
   }
   }
 
 
-  Color? get hightlightColor {
+  Color? get highlightColor {
     if (containsKey(StyleKey.highlightColor) &&
     if (containsKey(StyleKey.highlightColor) &&
         this[StyleKey.highlightColor] is String) {
         this[StyleKey.highlightColor] is String) {
       return Color(
       return Color(
@@ -228,7 +228,7 @@ class RichTextStyle {
   }
   }
 
 
   Color get backgroundColor {
   Color get backgroundColor {
-    return attributes.hightlightColor ?? Colors.transparent;
+    return attributes.highlightColor ?? Colors.transparent;
   }
   }
 
 
   // font size
   // font size