From fab871eedb5a6d8fd11ccfc26d67e88648c8769e Mon Sep 17 00:00:00 2001 From: careworry <167077904+careworry@users.noreply.github.com> Date: Thu, 18 Apr 2024 20:52:58 +0800 Subject: [PATCH] chore: fix some typos in comments (#5161) Signed-off-by: careworry --- frontend/appflowy_flutter/lib/startup/plugin/plugin.dart | 2 +- .../lib/startup/tasks/generate_router.dart | 2 +- .../application/settings/appearance/appearance_cubit.dart | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/appflowy_flutter/lib/startup/plugin/plugin.dart b/frontend/appflowy_flutter/lib/startup/plugin/plugin.dart index c5b88b361d..3f36378af3 100644 --- a/frontend/appflowy_flutter/lib/startup/plugin/plugin.dart +++ b/frontend/appflowy_flutter/lib/startup/plugin/plugin.dart @@ -55,7 +55,7 @@ abstract class PluginBuilder { PluginType get pluginType; /// The layoutType is used in the backend to determine the layout of the view. - /// Currrently, AppFlowy supports 4 layout types: Document, Grid, Board, Calendar. + /// Currently, AppFlowy supports 4 layout types: Document, Grid, Board, Calendar. ViewLayoutPB? get layoutType => ViewLayoutPB.Document; } diff --git a/frontend/appflowy_flutter/lib/startup/tasks/generate_router.dart b/frontend/appflowy_flutter/lib/startup/tasks/generate_router.dart index 10d267dfbf..6f1a338c3f 100644 --- a/frontend/appflowy_flutter/lib/startup/tasks/generate_router.dart +++ b/frontend/appflowy_flutter/lib/startup/tasks/generate_router.dart @@ -589,7 +589,7 @@ GoRoute _rootRoute(Widget child) { return GoRoute( path: '/', redirect: (context, state) async { - // Every time before navigating to splash screen, we check if user is already logged in desktop. It is used to skip showing splash screen when user just changes apperance settings like theme mode. + // Every time before navigating to splash screen, we check if user is already logged in desktop. It is used to skip showing splash screen when user just changes appearance settings like theme mode. final userResponse = await getIt().getUser(); final routeName = userResponse.fold( (user) => DesktopHomeScreen.routeName, diff --git a/frontend/appflowy_flutter/lib/workspace/application/settings/appearance/appearance_cubit.dart b/frontend/appflowy_flutter/lib/workspace/application/settings/appearance/appearance_cubit.dart index 0f4cc43b8e..fa9b571478 100644 --- a/frontend/appflowy_flutter/lib/workspace/application/settings/appearance/appearance_cubit.dart +++ b/frontend/appflowy_flutter/lib/workspace/application/settings/appearance/appearance_cubit.dart @@ -155,28 +155,28 @@ class AppearanceSettingsCubit extends Cubit { void resetFontFamily() => setFontFamily(DefaultAppearanceSettings.kDefaultFontFamily); - /// Update document cursor color in the apperance settings and emit an updated state. + /// Update document cursor color in the appearance settings and emit an updated state. void setDocumentCursorColor(Color color) { _appearanceSettings.documentSetting.cursorColor = color.toHexString(); _saveAppearanceSettings(); emit(state.copyWith(documentCursorColor: color)); } - /// Reset document cursor color in the apperance settings + /// Reset document cursor color in the appearance settings void resetDocumentCursorColor() { _appearanceSettings.documentSetting.cursorColor = ''; _saveAppearanceSettings(); emit(state.copyWith(documentCursorColor: null)); } - /// Update document selection color in the apperance settings and emit an updated state. + /// Update document selection color in the appearance settings and emit an updated state. void setDocumentSelectionColor(Color color) { _appearanceSettings.documentSetting.selectionColor = color.toHexString(); _saveAppearanceSettings(); emit(state.copyWith(documentSelectionColor: color)); } - /// Reset document selection color in the apperance settings + /// Reset document selection color in the appearance settings void resetDocumentSelectionColor() { _appearanceSettings.documentSetting.selectionColor = ''; _saveAppearanceSettings();