Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/L3odr0id/asset_fill

Assets path generator for pubspec.yaml
https://github.com/L3odr0id/asset_fill

dart dart-library dart-package dartlang flutter flutter-examples flutter-package generator pubspec-yaml yaml

Last synced: 7 days ago
JSON representation

Assets path generator for pubspec.yaml

Awesome Lists containing this project

README

        

This package automatically adds to pubspec.yaml all the subfolders from asstes.

## Usage

- Make sure that your `pubspec.yaml` declares a `flutter` map and the `assets` list that contains at least one placeholder element as shown below. Consider checking the [example](https://github.com/L3odr0id/asset_fill/blob/61479a2aafa1e3040063df828b153dbe4619419c/example/pubspec.yaml#L56).
```yaml
flutter:
# stuff
assets:
- placeholder
```
- Place your files and folders to an assets directory.
- Execute following command:

```bash
flutter pub run asset_fill
```
- Remove the placeholder


## Watch the example

![Demo gif](https://github.com/L3odr0id/asset_fill/blob/master/gif/functionality.gif)