Replace initial Route in MaterialApp without animation?

前端 未结 3 1959
深忆病人
深忆病人 2020-11-29 00:09

Our app is built on top of Scaffold and to this point we have been able to accommodate most of our routing and navigation requirements using the provided calls

3条回答
  •  爱一瞬间的悲伤
    2020-11-29 01:04

    To prevent animations when displaying a route, pass RouteSettings(isInitialRoute: true) to the PageRoute constructor.

    See this answer with working example and screen recording.

提交回复
热议问题