WonderDetails: Switch wonderButton from pop() to /home, helps to clear the queryParams when going back.
This commit is contained in:
parent
c0fae98895
commit
44300dbe23
@ -63,6 +63,8 @@ class _WonderEditorialScreenState extends State<WonderEditorialScreen> {
|
||||
_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<WonderEditorialScreen> {
|
||||
alignment: backBtnAlign,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all($styles.insets.sm),
|
||||
child: BackBtn(icon: AppIcons.north),
|
||||
child: BackBtn(icon: AppIcons.north, onPressed: _handleBackPressed),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user