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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
[flutter]: fix bugs
appflowy955bc3e103bf
diff --git a/app_flowy/lib/workspace/application/doc/doc_bloc.dart b/app_flowy/lib/workspace/application/doc/doc_bloc.dartindex 303f3872d6..19962b33c4 100644--- a/app_flowy/lib/workspace/application/doc/doc_bloc.dart+++ b/app_flowy/lib/workspace/application/doc/doc_bloc.dart@@ -58,7 +58,10 @@ class DocBloc extends Bloc<DocEvent, DocState> {Future<void> close() async {await listener.stop();- await _subscription?.cancel();+ if (_subscription != null) {+ await _subscription?.cancel();+ }+docManager.closeDoc();return super.close();}diff --git a/app_flowy/lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart b/app_flowy/lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dartindex b1c038d40b..88582c3733 100644--- a/app_flowy/lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart+++ b/app_flowy/lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart@@ -71,7 +71,7 @@ class EditorToolbar extends StatelessWidget implements PreferredSizeWidget {),FlowyToggleStyleButton(attribute: Attribute.italic,- normalIcon: 'editor/restore',+ normalIcon: 'editor/italic',iconSize: toolbarIconSize,controller: controller,),diff --git a/rust-lib/flowy-ot/src/core/attributes/attribute.rs b/rust-lib/flowy-ot/src/core/attributes/attribute.rsindex 4509031198..38c377de6d 100644--- a/rust-lib/flowy-ot/src/core/attributes/attribute.rs+++ b/rust-lib/flowy-ot/src/core/attributes/attribute.rs@@ -80,7 +80,7 @@ pub enum AttributeKey {Italic,#[serde(rename = "underline")]Underline,- #[serde(rename = "strikethrough")]+ #[serde(rename = "strike")]StrikeThrough,#[serde(rename = "font")]Font,