mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
refactor: replace plugin type with layout type
This commit is contained in:
@ -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),
|
||||
),
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user