refactor: replace plugin type with layout type

This commit is contained in:
appflowy
2022-08-18 19:32:08 +08:00
parent d3cd60e527
commit af23e3e803
25 changed files with 152 additions and 99 deletions

View File

@ -42,10 +42,10 @@ class DocumentPluginBuilder extends PluginBuilder {
String get menuName => LocaleKeys.document_menuName.tr();
@override
PluginType get pluginType => DefaultPlugin.editor.type();
PluginType get pluginType => PluginType.editor;
@override
ViewDataTypePB get dataType => ViewDataTypePB.TextBlock;
ViewDataTypePB get dataType => ViewDataTypePB.Text;
}
class DocumentPlugin implements Plugin {