Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: fix some typos in comments (#5161)

careworryfab871eedb5a
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<AuthService>().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<AppearanceSettingsState> {
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();