auto_gen_assets 1.0.5 copy "auto_gen_assets: ^1.0.5" to clipboard
auto_gen_assets: ^1.0.5 copied to clipboard

A Flutter package for automatically generating strongly-typed asset references from your assets directory.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.5 - 2024-07-19 #

Fixed #

  • Fixed pub.flutter-io.cn validation issues
  • Removed issue_tracker URL that was unreachable
  • Fixed code formatting issues in bin/auto_gen_assets.dart and lib/auto_gen_assets.dart
  • Removed unnecessary library names
  • Improved code quality and linting compliance

Improved #

  • Better pub.flutter-io.cn compatibility
  • Cleaner code structure

1.0.4 - 2024-07-18 #

Fixed #

  • Fixed watcher not detecting file changes (add/remove/modify)
  • Improved file detection with PollingDirectoryWatcher for better reliability
  • Added subdirectory watching support
  • Enhanced error handling and logging
  • Fixed CLI interface to properly support --watch flag

Improved #

  • Better debouncing logic (300ms instead of 500ms)
  • More detailed change detection messages
  • Improved watcher stability and responsiveness

1.0.3 - 2024-07-18 #

Added #

  • Background watcher functionality with watcher.sh and watcher.bat scripts
  • Integrated watcher directly into package (no need for separate bin files)
  • Background process management with start/stop/status/logs commands
  • Cross-platform support (macOS/Linux/Windows)

Fixed #

  • Watcher now works after installing package from pub.flutter-io.cn
  • Improved command line interface with --watch flag
  • Better error handling and process management

1.0.2 - 2024-07-18 #

Added #

  • Shell scripts for easy asset generation and watching
  • Improved watcher with better error handling and graceful shutdown
  • Command line options for customizing assets directory and output path
  • Enhanced AssetGenerator with proper folder structure organization

Fixed #

  • Fixed watcher to keep running indefinitely
  • Removed invalid executables section from pubspec.yaml
  • Improved generated code structure with proper class organization

1.0.1 #

Added #

  • Asset watcher functionality for automatic regeneration
  • Makefile with convenient commands (watch, generate, clean, test)
  • GitHub repository integration
  • Improved documentation and examples

Fixed #

  • Moved watcher dependency to main dependencies section
  • Updated package metadata for pub.flutter-io.cn publishing

1.0.0 #

Added #

  • Initial release of auto_gen_assets package
  • AssetGenerator class for automatically generating Dart code from assets directory
  • Support for folder-based asset organization
  • Configurable file filtering (hidden files, env files)
  • Automatic naming conversion (camelCase for properties, PascalCase for classes)
  • Comprehensive test coverage
  • Example project demonstrating usage
  • Detailed documentation and README

Features #

  • Scans assets directory recursively
  • Groups assets by folder structure
  • Generates strongly-typed asset references
  • Handles hidden files (files starting with '.')
  • Handles environment files (files containing '.env')
  • Converts file names to camelCase for property names
  • Converts folder names to PascalCase for class names
  • Configurable output file location
  • Configurable assets directory path

Technical Details #

  • Clean Architecture implementation
  • Proper error handling
  • Immutable data structures
  • Comprehensive unit tests
  • Flutter package structure
  • Command-line tool support
1
likes
150
points
177
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for automatically generating strongly-typed asset references from your assets directory.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, watcher

More

Packages that depend on auto_gen_assets