Skip to content

Commit

Permalink
🐛 Fix not popped after post deleted in post detail page.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 20, 2020
1 parent d011d1a commit 04ec50f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pages/post/post_detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class PostDetailPageState extends State<PostDetailPage> {
Instances.eventBus
..on<PostDeletedEvent>().listen((event) {
if (this.mounted && event.postId == widget.post.id) {
Future.delayed(const Duration(milliseconds: 2200), () {
Navigator.of(context).pop();
Future.delayed(2200.milliseconds, () {
navigatorState.pop(true);
});
}
})
Expand Down

0 comments on commit 04ec50f

Please sign in to comment.