🐛 Fixes on post route

This commit is contained in:
2025-06-27 02:35:06 +08:00
parent 4deff5a920
commit 786f851a97
2 changed files with 21 additions and 11 deletions

View File

@ -45,7 +45,7 @@ class PostItemCreator extends HookConsumerWidget {
title: 'edit'.tr(),
image: MenuImage.icon(Symbols.edit),
callback: () {
context.push('/posts/item.id/edit').then((value) {
context.push('/posts/${item.id}/edit').then((value) {
if (value != null) {
onRefresh?.call();
}
@ -80,7 +80,7 @@ class PostItemCreator extends HookConsumerWidget {
image: MenuImage.icon(Symbols.link),
callback: () {
// Copy post link to clipboard
context.push('/posts/item.id');
context.push('/posts/${item.id}');
},
),
],