How run code after showDialog is dismissed in Flutter?

前端 未结 7 1455
心在旅途
心在旅途 2021-02-05 01:11

How to update the Homepage just after the showDialog() is dismissed/disposed? Doesn\'t seem like it has an onDispose() function.

Found another

7条回答
  •  情深已故
    2021-02-05 01:32

    Use; .whenComplete(funcName/*not funcName() !*/); after the showDialog()

    funcName() {
    //Your code
    }
    

提交回复
热议问题