FLUTTER ECOSYSTEM

index_generator

Automatically generate index / barrel / library files with all the export needed for your library.

Latest version
4.1.2
30-day downloads
18.2K
Likes
33
Pub points
140

Package Overview

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

Overview

index_generator is a Flutter/Dart package that automates the creation of index (barrel) files, simplifying library organization by generating exports for all relevant Dart files. It reduces manual effort and minimizes errors when managing large codebases with multiple modules or packages. The tool integrates seamlessly into the development workflow via the command line, ensuring consistent and up-to-date export declarations across directories. Ideal for developers who prioritize clean, maintainable code structure.

Use cases
  • Automating export file generation
  • Maintaining clean library structure
  • Streamlining package development
  • Reducing manual export errors
  • Supporting modular app architecture
Key features
  • Automatic barrel file generation
  • Command-line integration
  • Supports multiple platforms
  • Ensures consistent exports
  • Minimal configuration required
Suitable for
  • Large-scale Flutter projects
  • Library authors
  • Teams using modular codebases
  • Developers seeking automation
  • Projects with frequent file restructuring
Considerations
  • Requires setup in pubspec.yaml
  • May conflict with manual edits
  • Best used in controlled directory structures
  • Not suitable for simple apps
  • Depends on correct folder organization
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add index_generator

Categories

Dependencies

Dependency list 11 items

Source repository

Related projects