chore: open next page when current page get deleted

This commit is contained in:
appflowy
2022-09-22 13:08:48 +08:00
parent bdf4e60b48
commit 37f85cebde
25 changed files with 312 additions and 178 deletions

View File

@ -66,7 +66,9 @@ class TrashPluginDisplay extends PluginDisplay {
Widget? get rightBarItem => null;
@override
Widget buildWidget() => const TrashPage(key: ValueKey('TrashPage'));
Widget buildWidget(PluginContext context) => const TrashPage(
key: ValueKey('TrashPage'),
);
@override
List<NavigationItem> get navigationItems => [this];