config_theme 1.0.2 config_theme: ^1.0.2 copied to clipboard
this module make you can config theme easily
config_theme #
this module make you can set theme in your app.
Installation #
- If the juneflow project doesn't exist, please create it by following this guide.
- open terminal in the juneflow project root directory, enter the following command.
june add config_theme
Usage #
you can set theme in lib/util/config/config_theme/_.dart
file.
apply font #
- add font files in
assets/module/config_theme
directory. example font is CaviarDreams.ttf already inside the directory. - add font in pubspec.yaml file.
flutter:
fonts:
- family: CaviarDreams
fonts:
- asset: assets/module/config_theme/CaviarDreams.ttf
- asset: assets/module/config_theme/CaviarDreams_Bold.ttf
- asset: assets/module/config_theme/CaviarDreams_Italic.ttf
- asset: assets/module/config_theme/CaviarDreams_BoldItalic.ttf
style: normal
- set font family name in
lib/util/config/config_theme/_.dart
file lightTheme and darkTheme.
fontFamily: null, -> fontFamily: 'CaviarDreams',
- done!