JDChi / Flutter-Grid-Lottery

用Flutter实现一个九宫格抽奖 A simple grid lottery widget on Flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

抽奖后重置奖项

cw0925 opened this issue · comments

你好,想问下重置奖项要怎么做。就是抽完奖后,抽奖界面九宫格的内容要改变。

你好,想问下重置奖项要怎么做。就是抽完奖后,抽奖界面九宫格的内容要改变。

可以重新初始化 SimpleController,然后在 SimpleLotteryWidget 的 didUpdateWidget 方法里进行数据替换处理。已更新了示例代码。