chore: fix some typos in comments (#5161)

Signed-off-by: careworry <worrycare@outlook.com>
This commit is contained in:
careworry 2024-04-18 20:52:58 +08:00 committed by GitHub
parent 236374ea2e
commit fab871eedb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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,

View File

@ -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();