go_router
2024-11-08 本文已影响0人
择一城终老_347e
go和push的区别
go:
Navigate to a location.
push:
Push a location onto the page stack.
See also:
pushReplacement which replaces the top-most page of the page stack and always uses a new page key.
replace which replaces the top-most page of the page stack but treats it as the same page. The page key will be reused. This will preserve the state and not run any page animation.