xaldarof/assets-generator
資產產生器可為您節省時間並提升創意工作流程。深入體驗無縫的資產創造過程,輕鬆提升專案的視覺吸引力。
- Stars
- 4
- Forks
- 0
- 最近推送(UTC)
- 2023年6月15日
- 專案狀態
- 未封存
語言Dart
技術主題
使用的依賴
依賴清單 5 項
- flutter
{"sdk":"flutter"} - path
^1.6.0 - cupertino_icons
^1.0.2 - flutter_test開發依賴
{"sdk":"flutter"} - flutter_lints開發依賴
^2.0.0
原始 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)
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";
}