搜尋套件、儲存庫與 APP 分類

套件詳情v5.0.0

build

一個用於撰寫與 build_runner 相容的程式碼產生器的套件。

AndroidiOSmacOSWindowsLinux
近 30 天下載
802萬
喜歡數
102
Pub 分數
150

安裝套件

flutter pub add build

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

建構套件提供了一個框架,用於建立與 build_runner 搭配使用的程式碼產生器,可在建構過程中自動產生 Dart 程式碼。它支援增量建構,並能無縫整合至跨多個平台的 Flutter 與 Dart 專案中。開發者利用它來產生樣板程式碼,例如序列化邏輯或相依性插入,以減少手動工作並提升程式碼的一致性。此套件是 Dart 生態系統工具鏈的基礎。

適用情境

  • 自動化代碼生成
  • 產生序列化代碼
  • 建立依賴注入樣板
  • 支援 build_runner 工作流程
  • 啟用增量建構

主要特色

  • 建構執行器整合
  • 增量建構支援
  • 可擴展的產生器架構
  • 跨平台相容性
  • 強大的錯誤處理

適合對象

  • Dart/Flutter 開發者
  • 工具作者
  • 程式碼產生愛好者
  • 大型專案維護者
  • 使用 build_runner 的團隊

使用建議

  • 需要設定 build_runner
  • 自定義產生器的學習曲線
  • 潛在的建構效能開銷
  • 有限的執行時除錯
  • 需要謹慎的依賴管理

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Questions? Suggestions? Found a bug? Please file an issue or start a discussion.

Code generation for Flutter and Dart packages.

See the build_runner package documentation for how to use build_runner builders in your package to add serialization, data classes, data binding, dependency injection, mocking and more.

See the build package documentation to create your own builder.

This repo also hosts the following builders and packages for use by builders.

所屬分類

依賴

依賴清單 6 項

原始碼儲存庫

使用此套件的專案