theme_config_lego 1.0.0+1 theme_config_lego: ^1.0.0+1 copied to clipboard
Theme Config Lego
theme_config_lego #
Theme Config Lego
Installation #
- If the lego project doesn't exist, please create new project by following guide.
- open terminal in the lego project root directory, enter the following command.
lego add theme_config_lego
Usage #
you can set theme in lib/util/config/theme_config_lego/_.dart
file.
apply font #
- add font files in
assets/lego/theme_config_lego
directory. example font is CaviarDreams.ttf already inside the directory. - add font in pubspec.yaml file.
flutter:
fonts:
- family: CaviarDreams
fonts:
- asset: assets/lego/theme_config_lego/CaviarDreams.ttf
- asset: assets/lego/theme_config_lego/CaviarDreams_Bold.ttf
- asset: assets/lego/theme_config_lego/CaviarDreams_Italic.ttf
- asset: assets/lego/theme_config_lego/CaviarDreams_BoldItalic.ttf
style: normal
- set font family name in
lib/util/config/theme_config_lego/_.dart
file lightTheme and darkTheme.
fontFamily: 'CaviarDreams',
- done!