spider 2.0.0
spider: ^2.0.0 copied to clipboard

A small dart command-line tool for generating dart references of assets from the assets folder.

example/EXAMPLE.md

Basic Example #

Just use following command:

spider build

Before

Widget build(BuildContext context) {
  return Image(image: AssetImage('assets/background.png'));
}

After

Widget build(BuildContext context) {
  return Image(image: AssetImage(Assets.background));
}

Generated Assets Class

class Assets {
  static const String background = 'assets/background.png';
}
86
likes
120
pub points
69%
popularity

Publisher

birju.dev

A small dart command-line tool for generating dart references of assets from the assets folder.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache 2.0 (LICENSE)

Dependencies

args, dart_style, html, http, logging, path, watcher, yaml

More

Packages that depend on spider