aagarwal1012 / aagarwal1012/IntroViews-Flutter

Solution for setState not working

未關閉
#64 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug waiting for response
主要語言
Dart
星號
665
分支
140
PR 合併指標
30 天內沒有已合併 PR

描述

Hi, I wanted to use this package one week ago but I couldn't because setState doesn't work and reading the package's issues, you wrote that you couldn't find the problem.

I was doing my own package and faced the same problem. I fixed it by moving the initState logic to build method. The problem is when you use setState in parent, child isn't created again and initState isn't called. If you move that crucial logic to build (or maybe another better place), it will work.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。