I open PageB from PageA using this code
(我使用此代码从PageA打开PageB)
Navigator.pushNamed(context, PageB.ROUTE);
In pageB, when I press the back device button, it will return to pageA, but the initState
in PageA is not getting called.
(在pageB中,当我按后退设备按钮时,它将返回到pageA,但是没有调用initState
中的initState。)
Why? (为什么?)
I want it call a function once it is back from pageB. (我希望它从pageB返回时调用一个函数。)
ask by John Joe translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…