Search packages, repositories and app categories

GitHub repositoryxaldarof/assets-generator

assets-generator

Assets Generator saves you time and enhances your creative workflow. Dive into a seamless asset creation experience and elevate your project's visual appeal with ease.

assets-generator project cover
Stars
4
Forks
0
Last push (UTC)
Jun 15, 2023
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

Run in terminal :

flutter pub run simple_assets_generator:generate -i assets/path/files -o lib -n Images -ext jpeg,png -fn assets_file flutter pub run simple_assets_generator:grouped_generate -i assets/path/files -o lib -n Images -fn assets_file

[required] -i assets directory, in my case assets/path/files

[required] -o generated file output path, lib/assets_names in my case

[optional] -n generated class name

[optional] -fn generated file name

[optional] -ext generate only files with given extensions (not supported for grouped generation)

Open pub.dev

class TxtFiles {
  static String fileTxt = 'assets/path/files/text1.txt';
}
class Images {
  static String logoPng = 'assets/path/files/logo.png';
}

Grouped generation result

abstract class AssetImages {
  static String png1 =
      "assets/path/files/1.png";
  static String png2 =
      "assets/path/files/2.png";
}

abstract class AssetDocuments {
  static String txtText1 =
      "assets/path/files/text1.txt";
  static String txtText2 =
      "assets/path/files/text2.txt";
}
xaldarof GitHub avatar
GitHub author

xaldarof ↗

bedroom
LanguagesDart

Categories

Dependencies used

Dependency list 5 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗