Reload after post

This commit is contained in:
2024-03-24 12:32:24 +08:00
parent eb01942e2d
commit cba4f19b17
4 changed files with 16 additions and 7 deletions

View File

@ -92,7 +92,11 @@ class _CommentListWidgetState extends State<CommentListWidget> {
icon: const Icon(Icons.edit),
label: const Text("LEAVE COMMENT"),
onPressed: () {
router.push("/post/comments", extra: widget.parent);
router
.push("/post/comments", extra: widget.parent)
.then((value) {
if (value == true) paginationController.refresh();
});
},
);
} else {