Overview
build_verify is a development tool for Flutter and Dart projects that use the package:build system. It ensures generated code remains up-to-date by verifying build outputs during development or CI workflows. The package runs checks to detect if any generated files are stale, helping maintain code consistency and prevent runtime issues from outdated code. It integrates seamlessly with Flutter's pub system and supports multiple platforms including Android, iOS, macOS, Windows, and Linux.
Use cases
- Ensuring generated code is current in build-based projects
- Preventing runtime errors from stale code
- Validating builds in CI/CD pipelines
- Detecting missing or outdated build outputs
- Supporting automated testing workflows
Key features
- Automated verification of generated code
- Integration with package:build
- CLI command for easy execution
- Cross-platform support
- Lightweight and fast checks
Suitable for
- Developers using package:build
- Teams enforcing code quality standards
- CI/CD environments
- Projects with code generation
Considerations
- Requires package:build setup
- Not needed for non-build-based projects
- May require configuration in complex build setups
- Best used alongside build_runner