Merge pull request #1121 from AppFlowy-IO/fix/black_page_after_delete_doc

chore: open next page when current page get deleted
This commit is contained in:
Nathan.fooo
2022-09-22 14:39:48 +08:00
committed by GitHub
25 changed files with 312 additions and 177 deletions

View File

@ -29,8 +29,13 @@ import 'widgets/toolbar/grid_toolbar.dart';
class GridPage extends StatefulWidget {
final ViewPB view;
final VoidCallback? onDeleted;
GridPage({Key? key, required this.view}) : super(key: ValueKey(view.id));
GridPage({
required this.view,
this.onDeleted,
Key? key,
}) : super(key: ValueKey(view.id));
@override
State<GridPage> createState() => _GridPageState();