mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
[flutter]: fix bugs
This commit is contained in:
parent
99d39e30f8
commit
955bc3e103
@ -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();
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ class EditorToolbar extends StatelessWidget implements PreferredSizeWidget {
|
||||
),
|
||||
FlowyToggleStyleButton(
|
||||
attribute: Attribute.italic,
|
||||
normalIcon: 'editor/restore',
|
||||
normalIcon: 'editor/italic',
|
||||
iconSize: toolbarIconSize,
|
||||
controller: controller,
|
||||
),
|
||||
|
@ -80,7 +80,7 @@ pub enum AttributeKey {
|
||||
Italic,
|
||||
#[serde(rename = "underline")]
|
||||
Underline,
|
||||
#[serde(rename = "strikethrough")]
|
||||
#[serde(rename = "strike")]
|
||||
StrikeThrough,
|
||||
#[serde(rename = "font")]
|
||||
Font,
|
||||
|
Loading…
Reference in New Issue
Block a user