要想使用asset,需要先讓asset被識別,在項目根目錄中的pubspec.yaml中定義圖片就可以了。 flutter: assets: - assets/1.png - assets/2.png.
確定! 回上一頁