xdd666t / getx_template

Used to generate the template code of GetX framework | Flutter GetX模板代码生成(一个有用的IDEA插件)
Apache License 2.0
295 stars 67 forks source link

问题请教 #31

Closed liangju126 closed 2 years ago

liangju126 commented 2 years ago

有什么办法能让页面刷新吗?或者重新走一遍生命周期? 需求是关掉当前页,刷新前一页。 谢谢。

xdd666t commented 2 years ago

await Navigator.push(...) //刷新操作 refresh(...)

liangju126 commented 2 years ago

refresh() 操作有什么要求吗?我直接绑定按钮点击事件,没有反应

xdd666t commented 2 years ago

麻了,你把init周期里面逻辑提成一个方法,关闭页面在await后,调下那个方法不就行了

liangju126 commented 2 years ago

麻了,你把init周期里面逻辑提成一个方法,关闭页面在await后,调下那个方法不就行了

也只能这样了,谢谢

xdd666t commented 2 years ago

有什么flutter使用的问题,加这个群,在群里问吧 image