🐛 Replace the push with go to view posts in creator centre in order to fix #172

This commit is contained in:
2025-08-21 20:09:49 +08:00
parent 0b6efa373a
commit 3d473e2fec
2 changed files with 10 additions and 2 deletions

View File

@@ -235,7 +235,11 @@ class PageBackButton extends StatelessWidget {
return IconButton(
onPressed: () {
onWillPop?.call();
context.pop();
if (context.canPop()) {
context.pop();
} else {
context.go('/');
}
},
icon: Icon(
color: color,