diff --git a/lib/ui/screens/editorial/editorial_screen.dart b/lib/ui/screens/editorial/editorial_screen.dart index 6c746da1..9a9e5956 100644 --- a/lib/ui/screens/editorial/editorial_screen.dart +++ b/lib/ui/screens/editorial/editorial_screen.dart @@ -63,6 +63,8 @@ class _WonderEditorialScreenState extends State { _scrollPos.value = _scroller.position.pixels; } + void _handleBackPressed() => context.go(ScreenPaths.home); + @override Widget build(BuildContext context) { return LayoutBuilder(builder: (_, constraints) { @@ -181,7 +183,7 @@ class _WonderEditorialScreenState extends State { alignment: backBtnAlign, child: Padding( padding: EdgeInsets.all($styles.insets.sm), - child: BackBtn(icon: AppIcons.north), + child: BackBtn(icon: AppIcons.north, onPressed: _handleBackPressed), ), ), )