FLUTTER ECOSYSTEM

xaldarof/assets-generator

एसेट जनरेटर आपके समय को बचाता है और आपके रचनात्मक कार्य प्रवाह को बढ़ाता है। निरंतर प्रक्रिया में एसेट बनाने का अनुभव प्राप्त करें और आसानी से अपने प्रोजेक्ट के दृश्य आकर्षण को बढ़ाएं।

assets-generator प्रोजेक्ट कवर
Stars
4
Forks
0
अंतिम पुश (UTC)
15 जून 2023
प्रोजेक्ट स्थिति
सक्रिय
xaldarof GitHub avatar
GITHUB User

xaldarof ↗

bedroom
भाषाएँDart

तकनीकी विषय

उपयोग की गई निर्भरताएँ

निर्भरता सूची 5 आइटम

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

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";
}