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!