asset_fill
2.0.0, released 2 years ago by an unverified publisher
Automatically generates asset entries in pubspec.yaml by scanning subdirectories.
What it does
It scans all subdirectories inside the assets folder and automatically adds them to pubspec.yaml. Running the tool updates existing asset entries instead of appending duplicates.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You have a large number of nested asset directories and want to automate updating pubspec.yaml
- You want to avoid manually maintaining asset paths in pubspec.yaml
Skip it when
- You only have a few static asset files and prefer manual configuration
Strengths
- Updates assets instead of appending them on repeated runs
- Supports multiple platforms including android, ios, windows, macos, and linux
- Fixes path handling issues like Windows backslashes
Weaknesses
- Limited documentation and setup details in the README
- No explicit configuration options documented
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Place your files and folders in the assets directory and execute flutter pub run asset_fill.
flutter pub run asset_fillAlternatives
Packages that do the same job and could replace asset_fill.
- pubspec_extract
Extracts Dart pubspec.yaml file and generates pubspec.dart at build time
75Compare - spider
A Dart command-line tool for generating type-safe Dart references for assets.
63Compare - pubspec_generator
Generates a Dart class containing information from pubspec.yaml.
67Compare - flutter_asset_generator
Generates Dart constant files for pubspec.yaml assets to avoid manual string paths.
50Compare
Works with
Packages commonly used together with asset_fill: ones it builds on, ones built on it, and its own family.