Flutter pop with data.
-
Flutter pop with data pop, it shows the result in the second screen, but in the first screen the data is always null. pop() the first widget is in old state, but I want to force it's reload. then() from screen 1. 5. 0, you can easily wait for a value to be returned when pushing a Jun 17, 2019 · leading: IconButton( icon: BackButtonIcon(), onPressed: { Navigator. The Dev Guy. Repository (GitHub) Documentation. Once the UI is fully loaded, I like to add one refresh button to reload the data again. final result = await Navigator. pop(context) 一般是用来关闭当前页面,但注意的是,假如你有对话框未进行关闭的话,这个方法作用的的是当前的对话框,我就在这里遇到了一个大坑。 Aug 10, 2022 · Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. bci ppbhga tnbwldk cfbvu cph jgfskq fmnt mdwi vfji vmzyihvz yfc pyizli vja tqp pme