在〈第一個Flutter 專案〉中看到,範例在繼承StatefulWidget 後,定義了key, ... Note( key: UniqueKey(), // 設置key color: Colors.red, width: 200, height: 200, ) ...
確定! 回上一頁