aagarwal1012 / aagarwal1012/IntroViews-Flutter

Solution for setState not working

オープン
#64 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。