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;
|
_scrollPos.value = _scroller.position.pixels;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _handleBackPressed() => context.go(ScreenPaths.home);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return LayoutBuilder(builder: (_, constraints) {
|
return LayoutBuilder(builder: (_, constraints) {
|
||||||
@ -181,7 +183,7 @@ class _WonderEditorialScreenState extends State<WonderEditorialScreen> {
|
|||||||
alignment: backBtnAlign,
|
alignment: backBtnAlign,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.all($styles.insets.sm),
|
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