fixed profile back button

This commit is contained in:
misha
2025-09-24 10:01:06 +03:00
parent 6b7b1f2d18
commit 1bc0ab3237
2 changed files with 13 additions and 2 deletions

View File

@@ -220,7 +220,18 @@ class _ProfileScreenState extends State<ProfileScreen> {
Scaffold _myProfileScreen(ProfileStateLoaded state) {
return Scaffold(
backgroundColor: Colors.grey.shade200,
appBar: AppBar(toolbarHeight: widget.slug == null ? 0 : null),
appBar: AppBar(
toolbarHeight: widget.slug == null ? 0 : null,
leading: BackButton(
onPressed: () {
if (context.canPop()) {
GoRouter.of(context).pop();
return;
}
GoRouter.of(context).go('/feed-screen');
},
),
),
body: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,