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

@ -23,7 +23,7 @@ class MenuTrash extends StatelessWidget {
onTap: () {
getIt<MenuSharedState>().latestOpenView = null;
getIt<HomeStackManager>()
.setPlugin(makePlugin(pluginType: DefaultPlugin.trash.type()));
.setPlugin(makePlugin(pluginType: PluginType.trash));
},
child: _render(context),
),

View File

@ -34,7 +34,7 @@ class TrashPluginBuilder extends PluginBuilder {
String get menuName => "TrashPB";
@override
PluginType get pluginType => DefaultPlugin.trash.type();
PluginType get pluginType => PluginType.trash;
}
class TrashPluginConfig implements PluginConfig {