diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/more/cubit/document_appearance_cubit.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/more/cubit/document_appearance_cubit.dart index f75fc3f7a7..39b2fa0143 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/more/cubit/document_appearance_cubit.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/more/cubit/document_appearance_cubit.dart @@ -78,7 +78,8 @@ class DocumentAppearanceCubit extends Cubit { ? Color(int.parse(selectionColorString)) : null; - final textScaleFactor = prefs.getDouble(KVKeys.textScaleFactor) ?? 1.0; + final textScaleFactor = + double.parse(prefs.getString(KVKeys.textScaleFactor) ?? '1.0'); if (isClosed) { return; diff --git a/frontend/appflowy_flutter/pubspec.lock b/frontend/appflowy_flutter/pubspec.lock index 73c3adda34..52c265cb46 100644 --- a/frontend/appflowy_flutter/pubspec.lock +++ b/frontend/appflowy_flutter/pubspec.lock @@ -53,8 +53,8 @@ packages: dependency: "direct main" description: path: "." - ref: "1715ed4" - resolved-ref: "1715ed45490e0a432fa1bbfcb2f1693471632ff7" + ref: "0a84917" + resolved-ref: "0a84917e71cc44c9151f2f59aba72bcdacc66e57" url: "https://github.com/AppFlowy-IO/appflowy-editor.git" source: git version: "2.3.2" diff --git a/frontend/appflowy_flutter/pubspec.yaml b/frontend/appflowy_flutter/pubspec.yaml index 3203aa1391..f57803a35a 100644 --- a/frontend/appflowy_flutter/pubspec.yaml +++ b/frontend/appflowy_flutter/pubspec.yaml @@ -167,7 +167,7 @@ dependency_overrides: appflowy_editor: git: url: https://github.com/AppFlowy-IO/appflowy-editor.git - ref: "1715ed4" + ref: "0a84917" sheet: git: