Assets
This command is used to generate our asset file as a constant.
morpheme assets
Here are the steps for creating a logo.png image file as an example:
Add the logo files to the
assets/assets/images/
folderGenerate constants with the command:
morpheme assets
The logo constant will be generated in the
core/assets/lib/morpheme_images.dart
file
info
Adjust the placement of the assets that we use
- Image file path
assets/assets/images/
constant will be generated in the filecore/assets/lib/morpheme_images.dart
- The file path icon
assets/assets/icons/
constant will be generated in the filecore/assets/lib/morpheme_icons.dart
- The path of the json file
assets/assets/json/
constant will be generated in the filecore/assets/lib/morpheme_json.dart
Options
morpheme assets [arguments]
To see all available options and flags, run morpheme assets --help
.
Available Options
- Custom Morpheme Yaml :
Custom Morpheme Yaml | Description |
---|---|
--morpheme-yaml [path_file] | This command is used to select yaml config the application in a specific file, by default it will run the morpheme.yaml file. |