chore(typos): fix typos (#1961)

Co-authored-by: Nathan.fooo <86001920+appflowy@users.noreply.github.com>
This commit is contained in:
Sara Tavares
2023-03-20 13:29:17 +00:00
committed by GitHub
parent 77d787a929
commit 4798467621
38 changed files with 80 additions and 80 deletions

View File

@ -1,7 +1,7 @@
import 'package:bloc/bloc.dart';
import 'package:shared_preferences/shared_preferences.dart';
const String _kDocumentAppearenceFontSize = 'kDocumentAppearenceFontSize';
const String _kDocumentAppearanceFontSize = 'kDocumentAppearanceFontSize';
class DocumentAppearance {
const DocumentAppearance({
@ -24,7 +24,7 @@ class DocumentAppearanceCubit extends Cubit<DocumentAppearance> {
void fetch() async {
final prefs = await SharedPreferences.getInstance();
final fontSize = prefs.getDouble(_kDocumentAppearenceFontSize) ?? 14.0;
final fontSize = prefs.getDouble(_kDocumentAppearanceFontSize) ?? 14.0;
emit(state.copyWith(
fontSize: fontSize,
));
@ -32,7 +32,7 @@ class DocumentAppearanceCubit extends Cubit<DocumentAppearance> {
void syncFontSize(double fontSize) async {
final prefs = await SharedPreferences.getInstance();
prefs.setDouble(_kDocumentAppearenceFontSize, fontSize);
prefs.setDouble(_kDocumentAppearanceFontSize, fontSize);
emit(state.copyWith(
fontSize: fontSize,
));

View File

@ -20,7 +20,7 @@ void showLinkToPageMenu(
BuildContext context,
ViewLayoutTypePB pageType,
) {
final aligment = menuService.alignment;
final alignment = menuService.alignment;
final offset = menuService.offset;
menuService.dismiss();
@ -41,8 +41,8 @@ void showLinkToPageMenu(
_linkToPageMenu?.remove();
_linkToPageMenu = OverlayEntry(builder: (context) {
return Positioned(
top: aligment == Alignment.bottomLeft ? offset.dy : null,
bottom: aligment == Alignment.topLeft ? offset.dy : null,
top: alignment == Alignment.bottomLeft ? offset.dy : null,
bottom: alignment == Alignment.topLeft ? offset.dy : null,
left: offset.dx,
child: Material(
color: Colors.transparent,

View File

@ -463,7 +463,7 @@ class _CoverImageState extends State<_CoverImage> {
coverImage = const SizedBox();
break;
}
//OverflowBox needs to be wraped by a widget with constraints(or from its parent) first,otherwise it will occur an erorr
//OverflowBox needs to be wraped by a widget with constraints(or from its parent) first,otherwise it will occur an error
return SizedBox(
height: height,
child: OverflowBox(

View File

@ -17,7 +17,7 @@ class Loading {
return const SimpleDialog(
elevation: 0.0,
backgroundColor:
Colors.transparent, // can change this to your prefered color
Colors.transparent, // can change this to your preferred color
children: <Widget>[
Center(
child: CircularProgressIndicator(),