Search packages, repositories and app categories

Package detailsv5.1.12

build_modules

Builders to analyze and split Dart code into individually compilable modules based on imports.

AndroidiOSmacOSWindowsLinux
30-day downloads
51.7K
Likes
8
Pub points
20

Install package

flutter pub add build_modules

Package Overview

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

build_modules is a Dart package designed to analyze and partition Dart code into independent, compilable modules based on import relationships. It enables modular development by identifying dependencies and organizing code into self-contained units, improving build performance and maintainability. This tool is particularly useful in large-scale Flutter or Dart projects where managing complex dependency graphs is challenging. It integrates with the build system to automate module generation and ensure consistency across the codebase.

Use cases

  • Large-scale project modularization
  • Automated dependency analysis
  • Improved build performance
  • Codebase refactoring
  • Modular CI/CD pipelines
  • Cross-platform module sharing

Key features

  • Import-based module splitting
  • Integration with Dart build system
  • Automatic dependency tracking
  • Support for multi-platform builds
  • Configurable module boundaries
  • Build-time validation

Suitable for

  • Teams managing large Dart/Flutter apps
  • Projects requiring strict modularity
  • CI/CD environments with incremental builds
  • Developers optimizing compilation speed
  • Engineering teams adopting modular architecture

Considerations

  • Requires familiarity with Dart build system
  • May increase initial setup complexity
  • Best suited for projects with clear dependency boundaries
  • Limited runtime impact
  • Not intended for runtime module loading
  • Depends on build_runner for execution

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 15 items

Source repository

Projects using this package

No data available yet.