您應該在 IndexedStack 的 build() 方法中呼叫 State 建構函式。將需要的索引儲存在 State 的可變成員 ... 您致電 State 將通知flutter您的 setState 想要自行重建。
確定! 回上一頁