diff --git a/lib/ui/common/controls/circle_buttons.dart b/lib/ui/common/controls/circle_buttons.dart index 3bddf06d..6f968eb5 100644 --- a/lib/ui/common/controls/circle_buttons.dart +++ b/lib/ui/common/controls/circle_buttons.dart @@ -109,7 +109,14 @@ class BackBtn extends StatelessWidget { icon: icon, bgColor: bgColor, color: iconColor, - onPressed: onPressed ?? () => Navigator.pop(context), + onPressed: onPressed ?? () { + final nav = Navigator.of(context); + if(nav.canPop()){ + Navigator.pop(context); + } else { + context.go(ScreenPaths.home); + } + }, semanticLabel: semanticLabel ?? $strings.circleButtonsSemanticBack, ); }