Skip to content
pubscout

asset_fill

2.0.0, released 2 years ago by an unverified publisher

Automatically generates asset entries in pubspec.yaml by scanning subdirectories.

$ flutter pub add asset_fill
Source repository

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_fill

Alternatives

Packages that do the same job and could replace asset_fill.

Works with

Packages commonly used together with asset_fill: ones it builds on, ones built on it, and its own family.