config_theme 1.0.2 copy "config_theme: ^1.0.2" to clipboard
config_theme: ^1.0.2 copied to clipboard

this module make you can config theme easily

pub package

juneflow_github

config_theme #

this module make you can set theme in your app.

Installation #

  1. If the juneflow project doesn't exist, please create it by following this guide.
  2. 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 #

  1. add font files in assets/module/config_theme directory. example font is CaviarDreams.ttf already inside the directory.
  2. 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
  1. set font family name in lib/util/config/config_theme/_.dart file lightTheme and darkTheme.
fontFamily: null, -> fontFamily: 'CaviarDreams', 
  1. done!
0
likes
85
pub points
0%
popularity

Publisher

unverified uploader

this module make you can config theme easily

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, go_router, june_flow_util

More

Packages that depend on config_theme