Delete post

This commit is contained in:
2024-11-28 22:04:38 +08:00
parent 2261528580
commit dc1ce94145
7 changed files with 64 additions and 4 deletions

View File

@ -74,6 +74,10 @@ class PostCommentSliverListState extends State<PostCommentSliverList> {
onChanged: (data) {
setState(() => _posts[idx] = data);
},
onDeleted: () {
_posts.clear();
_fetchPosts();
},
),
onTap: () {
GoRouter.of(context).pushNamed(