Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/L3odr0id/asset_fill
- Owner: L3odr0id
- License: mit
- Created: 2022-02-09T08:38:09.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-09T14:12:51.000Z (3 months ago)
- Last Synced: 2024-10-28T10:25:44.076Z (13 days ago)
- Topics: dart, dart-library, dart-package, dartlang, flutter, flutter-examples, flutter-package, generator, pubspec-yaml, yaml
- Language: Dart
- Homepage: https://pub.dev/packages/asset_fill
- Size: 808 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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)