Asset File Generator For Flutter

Overview

Asset File Generator For Flutter

A simple command line tool that is used to generate the file containing a class, where all the assets present in the given directory will be mapped to a unique variable name.

How to Use?

Run this command in your terminal to activate the package.

dart pub global activate asset_file_generator

To run a script directly from the command line, add the system cache bin directory to your PATH environment variable. After adding the path, run this command for help.

afg -h

Available arguments:

-a, --asset-path                 path to the directory where your assets are stored
                                 (defaults to ".")
-e, --export-path                path to the directory where you want to export
                                 (defaults to ".")
-c, --class-suffix               suffix added to the generated class name
                                 (defaults to "Assets")
-f, --allowed-file-extentions    files that will be included
                                 (defaults to "png-svg-jpg-jpeg-gif-json")
-h, --help                       displays help information
-s, --single-file                generates a single file for all the assets
-m, --multiple-files             generates multiple files for all the assets based on directory

Conventions:

  • The name of the file should be in lower case.
  • Multiple words should be joined using '_' to create separation.
  • It is recommended to move all your assets under same directory and then generate the file/files.
  • It is also recommended to create a separate directory for the exported file/files.

Contributing:

  1. Fork it (https://github.com/himanshugarg08/asset_file_generator/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request
You might also like...

FavoriteWords - Random Names Generator Built With Flutter

FavoriteWords - Random Names Generator Built With Flutter

favorite words The user can select and unselect names, saving the best ones. The

Sep 17, 2022

My-First-Flutter-App - Startup Name Generator App with favorites option

My-First-Flutter-App - Startup Name Generator App with favorites option

Startup Name Generator App with 'favorites' option.. This is my first Flutter ap

Jan 21, 2022

Random-Face-Generator - A Cross-Platform(Web, Android, iOS) app to Generate Faces of People (These people don't actually exist) made using Flutter

Random-Face-Generator - A Cross-Platform(Web, Android, iOS) app to Generate Faces of People (These people don't actually exist) made using Flutter

👨 👩 Flutter Random Face Generator A flutter app to generate random faces. The

Dec 25, 2022

Adobe XD Flutter Code Generator - Plugin

Adobe XD Flutter Code Generator - Plugin

Dec 28, 2022

Code generator for Flutter's theme extension classes.

Code generator for Flutter's theme extension classes.

Welcome to Theme Tailor, a code generator and theming utility for supercharging Flutter ThemeExtension classes introduced in Flutter 3.0! The generato

Jan 2, 2023

A convenient code generator for app styleguide, gallery, wireframes and/or storyboard.

A convenient code generator for app styleguide, gallery, wireframes and/or storyboard.

Framy A convenient code generator for app styleguide, gallery, wireframes and/or storyboard. 👉 Official documentation 👈 Packages In order to use Fra

Dec 19, 2022

A fully-featured Last.fm client and scrobbler with Shazam-like scrobbling, a collage generator, home screen widgets, and more!

Finale A fully-featured Last.fm client and scrobbler with Shazam-like scrobbling, a collage generator, and more! The app is available on iOS, Android,

Jan 5, 2023

Dart code generator for helping with (firebase) analytics.

analytics_events_gen An easy generator for tracking firebase analytics events via type safe methods. Add to pubspec.yaml Check pub for the latest vers

Nov 16, 2022

Aris wasmjsextend - Binding generator for FFI bindings

Aris wasmjsextend - Binding generator for FFI bindings

Binding generator for FFI bindings. Note: ffigen only supports parsing C headers

Jan 9, 2022
A customizable toggle switch widget to add asset background images to the toggle switch.

A customizable toggle switch widget to add asset background images to the toggle switch. Features Use this package to give fancy background images to

null 3 Jul 26, 2022
Asset manager helps you auto-generate the assets code and add it to your pubspec.yaml .

Asset Manager Asset manager helps you auto-generate the assets code and add it to your pubspec.yaml . Quick start dart pub global activate asset_manag

Rutvik Tak 9 Nov 1, 2022
Startup-Name-Generator-App-in-Flutter - Business Startup Name Generator App in Flutter

Business Startup Name Generator App #About APP: A simple mobile app that generat

AHSAN SIDDZ 0 Jan 30, 2022
Flutter file based routing - File based routing and nested layouts for Flutter

Flutter File Based Routing I was inspired by the routing in remix.run with neste

Rody Davis 10 Sep 29, 2022
A simple flutter app that downloads a file from the internet, shows a custom-made download progress dialog and saves the file to device's internal storage

http_downloader A simple flutter app that downloads a file from the internet using the http plugin. It has a custom-designed progress dialog which dis

Akora Ing. Debrah Kwesi Buabeng 4 Apr 6, 2021
This project is a rebuild of the existing movie colony https://github.com/debbsefe/Movie-Colony. Here's also a link to the figma file https://www.figma.com/file/XpLFNEsROiN1z6lwnNHMrU/Movie-app?node-id=2956%3A10161

Tvfiy Generated by the Very Good CLI ?? A Very Good Project created by Very Good CLI. Getting Started ?? This project contains 3 flavors: development

Eferha Mamus 3 Nov 12, 2022
Flutter route generator

--- for more docs with examples https://autoroute.vercel.app Introduction Installation Setup and Usage Generated routes Navigation Navigating Between

Milad akarie 1.2k Jan 7, 2023
Dart and Flutter sealed class generator and annotations, with match methods and other utilities. There is also super_enum compatible API.

Dart Sealed Class Generator Generate sealed class hierarchy for Dart and Flutter. Features Generate sealed class with abstract super type and data sub

6thSolution 15 Jan 2, 2023
Project Structure Auth Generator For Flutter

get_structure_generator Project Structure Auto Generator This is not the package

Mitul Vaghasiya 6 Mar 22, 2022
A Cross-Platform Wisdom Generator built with Flutter

Wisgen ?? A small Cross-Platform Wisdom Generator, built using Flutter and a combination of external APIs This Wisdom Generator combines random advice

Sebastian Faust 31 Dec 6, 2022