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!
Libraries
- main
- util/_/initial_app/build_app_widget/build_material_app/_
- util/_/initial_app/build_app_widget/build_material_app/config_theme/_
- util/_/initial_app/build_app_widget/build_my_app/_
- util/_/initial_app/build_app_widget/build_my_app/config_theme/_
- util/_/initial_app/build_app_widget/build_run_app/_
- util/_/initial_app/build_app_widget/build_run_app/config_theme/_
- util/_/initial_app/ready_functions/after_material_app/_
- util/_/initial_app/ready_functions/after_material_app/config_theme/_
- util/_/initial_app/ready_functions/before_material_app/_
- util/_/initial_app/ready_functions/before_material_app/config_theme/_
- util/_/initial_app/ready_functions/before_run_app/_
- util/_/initial_app/ready_functions/before_run_app/config_theme/_
- util/_/initial_app/ready_functions/before_run_app/widgets_binding/_
- util/_/module_functions/config_theme/_
- util/_/shared_params/_/go_router
- util/_/shared_params/_/material_app
- util/_/shared_params/_/start_app_params
- util/_/shared_params/_/widgets_binding
- util/_/shared_params/config_theme/_
- util/config/_/global_imports
- util/config/_/init_view
- util/config/_/router/_/_
- util/config/config_theme/_
- util/usage/config_theme/usage
- util/usage/config_theme/usage_view