mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 14:47:13 -04:00
fix: various typos
Found via `codespell -q 3 -S *.svg,./frontend/app_flowy/assets/translations -L bloc,crate,homestate,nd,ot,ser`
This commit is contained in:
parent
4cf509d695
commit
5d09e1509d
10 changed files with 15 additions and 15 deletions
|
@ -70,7 +70,7 @@ class HomeStackNotifier extends ChangeNotifier {
|
||||||
HomeStackContext get context => stackContext;
|
HomeStackContext get context => stackContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
// HomeStack is initialized as singleton to controll the page stack.
|
// HomeStack is initialized as singleton to control the page stack.
|
||||||
class HomeStackManager {
|
class HomeStackManager {
|
||||||
final HomeStackNotifier _notifier = HomeStackNotifier();
|
final HomeStackNotifier _notifier = HomeStackNotifier();
|
||||||
HomeStackManager();
|
HomeStackManager();
|
||||||
|
|
|
@ -114,7 +114,7 @@ class _DeltaVisitor implements ast.NodeVisitor {
|
||||||
// TODO(kolja): Determine which behavior we really want here.
|
// TODO(kolja): Determine which behavior we really want here.
|
||||||
// We can either insert an additional newline or just have the
|
// We can either insert an additional newline or just have the
|
||||||
// paragraphs as single lines. Zefyr will by default render two lines
|
// paragraphs as single lines. Zefyr will by default render two lines
|
||||||
// are different paragraphs so for now we will not add an additonal
|
// are different paragraphs so for now we will not add an additional
|
||||||
// newline here.
|
// newline here.
|
||||||
//
|
//
|
||||||
// if (previousToplevelElement != null &&
|
// if (previousToplevelElement != null &&
|
||||||
|
|
|
@ -154,7 +154,7 @@ abstract class InlineSyntax {
|
||||||
|
|
||||||
/// Tries to match at the parser's current position.
|
/// Tries to match at the parser's current position.
|
||||||
///
|
///
|
||||||
/// The parser's position can be overriden with [startMatchPos].
|
/// The parser's position can be overridden with [startMatchPos].
|
||||||
/// Returns whether or not the pattern successfully matched.
|
/// Returns whether or not the pattern successfully matched.
|
||||||
bool tryMatch(InlineParser parser, [int? startMatchPos]) {
|
bool tryMatch(InlineParser parser, [int? startMatchPos]) {
|
||||||
startMatchPos ??= parser.pos;
|
startMatchPos ??= parser.pos;
|
||||||
|
@ -609,7 +609,7 @@ class LinkSyntax extends TagSyntax {
|
||||||
//
|
//
|
||||||
// Once we have parsed `Text [`, there is one (pending) link in the state
|
// Once we have parsed `Text [`, there is one (pending) link in the state
|
||||||
// stack. It is, by default, active. Once we parse the next possible link,
|
// stack. It is, by default, active. Once we parse the next possible link,
|
||||||
// `[more](links)`, as a real link, we must deactive the pending links (just
|
// `[more](links)`, as a real link, we must deactivate the pending links (just
|
||||||
// the one, in this case).
|
// the one, in this case).
|
||||||
var _pendingStatesAreActive = true;
|
var _pendingStatesAreActive = true;
|
||||||
|
|
||||||
|
@ -933,7 +933,7 @@ class LinkSyntax extends TagSyntax {
|
||||||
// followed by mystery characters; no longer a link.
|
// followed by mystery characters; no longer a link.
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
// [_parseTitle] made sure the title was follwed by a closing `)`
|
// [_parseTitle] made sure the title was followed by a closing `)`
|
||||||
// (but it's up to the code here to examine the balance of
|
// (but it's up to the code here to examine the balance of
|
||||||
// parentheses).
|
// parentheses).
|
||||||
parenCount--;
|
parenCount--;
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Config {
|
||||||
/// Can be smaller due to screen size and amount of columns
|
/// Can be smaller due to screen size and amount of columns
|
||||||
final double emojiSizeMax;
|
final double emojiSizeMax;
|
||||||
|
|
||||||
/// Verical spacing between emojis
|
/// Vertical spacing between emojis
|
||||||
final double verticalSpacing;
|
final double verticalSpacing;
|
||||||
|
|
||||||
/// Horizontal spacing between emojis
|
/// Horizontal spacing between emojis
|
||||||
|
@ -57,7 +57,7 @@ class Config {
|
||||||
/// The color of the category icon when selected
|
/// The color of the category icon when selected
|
||||||
final Color iconColorSelected;
|
final Color iconColorSelected;
|
||||||
|
|
||||||
/// The color of the loading indicator during initalization
|
/// The color of the loading indicator during initialization
|
||||||
final Color progressIndicatorColor;
|
final Color progressIndicatorColor;
|
||||||
|
|
||||||
/// The color of the backspace icon button
|
/// The color of the backspace icon button
|
||||||
|
|
|
@ -40,7 +40,7 @@ enum Category {
|
||||||
/// Travel emojis
|
/// Travel emojis
|
||||||
TRAVEL,
|
TRAVEL,
|
||||||
|
|
||||||
/// Ojects emojis
|
/// Objects emojis
|
||||||
OBJECTS,
|
OBJECTS,
|
||||||
|
|
||||||
/// Sumbol emojis
|
/// Sumbol emojis
|
||||||
|
@ -179,7 +179,7 @@ class _EmojiPickerState extends State<EmojiPicker> {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initalize emoji data
|
// Initialize emoji data
|
||||||
Future<void> _updateEmojis() async {
|
Future<void> _updateEmojis() async {
|
||||||
categoryEmoji.clear();
|
categoryEmoji.clear();
|
||||||
if (widget.config.showRecentsTab) {
|
if (widget.config.showRecentsTab) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import 'config.dart';
|
||||||
import 'emoji_view_state.dart';
|
import 'emoji_view_state.dart';
|
||||||
|
|
||||||
/// Template class for custom implementation
|
/// Template class for custom implementation
|
||||||
/// Inhert this class to create your own EmojiPicker
|
/// Inherit this class to create your own EmojiPicker
|
||||||
abstract class EmojiPickerBuilder extends StatefulWidget {
|
abstract class EmojiPickerBuilder extends StatefulWidget {
|
||||||
/// Constructor
|
/// Constructor
|
||||||
const EmojiPickerBuilder(this.config, this.state, {Key? key}) : super(key: key);
|
const EmojiPickerBuilder(this.config, this.state, {Key? key}) : super(key: key);
|
||||||
|
|
|
@ -90,7 +90,7 @@ class HomeMenu extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _renderBody(BuildContext context) {
|
Widget _renderBody(BuildContext context) {
|
||||||
// nested cloumn: https://siddharthmolleti.com/flutter-box-constraints-nested-column-s-row-s-3dfacada7361
|
// nested column: https://siddharthmolleti.com/flutter-box-constraints-nested-column-s-row-s-3dfacada7361
|
||||||
final theme = context.watch<AppTheme>();
|
final theme = context.watch<AppTheme>();
|
||||||
return Container(
|
return Container(
|
||||||
color: theme.bg1,
|
color: theme.bg1,
|
||||||
|
|
|
@ -18,10 +18,10 @@ abstract class FlowyInfraUIPlatform extends PlatformInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
Stream<bool> get onKeyboardVisibilityChange {
|
Stream<bool> get onKeyboardVisibilityChange {
|
||||||
throw UnimplementedError('`onKeyboardChange` should be overrided by subclass.');
|
throw UnimplementedError('`onKeyboardChange` should be overridden by subclass.');
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String?> getPlatformVersion() {
|
Future<String?> getPlatformVersion() {
|
||||||
throw UnimplementedError('`getPlatformVersion` should be overrided by subclass.');
|
throw UnimplementedError('`getPlatformVersion` should be overridden by subclass.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ enum OverlapBehaviour {
|
||||||
/// Maintain overlay size, which may cover the anchor widget.
|
/// Maintain overlay size, which may cover the anchor widget.
|
||||||
none,
|
none,
|
||||||
|
|
||||||
/// Resize overlay to avoid overlaping the anchor widget.
|
/// Resize overlay to avoid overlapping the anchor widget.
|
||||||
stretch,
|
stretch,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// If service worker doesn't succeed in a reasonable amount of time,
|
// If service worker doesn't succeed in a reasonable amount of time,
|
||||||
// fallback to plaint <script> tag.
|
// fallback to plain <script> tag.
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (!scriptLoaded) {
|
if (!scriptLoaded) {
|
||||||
console.warn(
|
console.warn(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue