Flutter:關於pubspec.yaml

在Flutter的APP專案資料夾中,pubspec.yaml是非常重要的檔案。
主要有幾個功能:

1.安裝新Package時,必須到檔案中新增package名稱
2.使用Assets時,必須將裡面的#註解去掉,圖片或媒體資料才能順利在APP中使用
3.使用新字體時,必須將裡面的#註解去掉,字體才能順利在APP中呈現
上述動作做完後,都必須更新
flutter pub get或是flutter packages get

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store