這兩天在寫 時遇到 CupertinoPicker Widget 沒有按照預期更新的問題。
資料 List 已經更新,但是 Widget 的內容卻不正確。
正好最近看到網友分享的文章,加個 Key 就可以解決⭐️
如果大家寫 Flutter 發生類似的問題,就加個 Key 試試吧!

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!