Search packages, repositories and app categories

Package detailsv5.0.0

build

A package for authoring build_runner compatible code generators.

AndroidiOSmacOSWindowsLinux
30-day downloads
8M
Likes
102
Pub points
150

Install package

flutter pub add build

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The build package provides a framework for creating code generators that work with build_runner, enabling automated generation of Dart code during the build process. It supports incremental builds and integrates seamlessly into Flutter and Dart projects across multiple platforms. Developers use it to generate boilerplate code, such as serialization logic or dependency injection, reducing manual effort and improving code consistency. The package is foundational for tooling in the Dart ecosystem.

Use cases

  • Automated code generation
  • Generating serialization code
  • Creating dependency injection boilerplate
  • Supporting build_runner workflows
  • Enabling incremental builds

Key features

  • Build runner integration
  • Incremental build support
  • Extensible generator architecture
  • Cross-platform compatibility
  • Robust error handling

Suitable for

  • Dart/Flutter developers
  • Tooling authors
  • Code generation enthusiasts
  • Large-scale project maintainers
  • Teams using build_runner

Considerations

  • Requires build_runner setup
  • Learning curve for custom generators
  • Potential build performance overhead
  • Limited runtime debugging
  • Needs careful dependency management

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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.

Categories

Dependencies

Dependency list 6 items

Source repository

Projects using this package