theme_config_lego 1.0.0+1 copy "theme_config_lego: ^1.0.0+1" to clipboard
theme_config_lego: ^1.0.0+1 copied to clipboard

Theme Config Lego

lego project pub package

theme_config_lego #

Theme Config Lego

Installation #

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

  1. add font files in assets/lego/theme_config_lego directory. example font is CaviarDreams.ttf already inside the directory.
  2. 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
  1. set font family name in lib/util/config/theme_config_lego/_.dart file lightTheme and darkTheme.
fontFamily: 'CaviarDreams', 
  1. done!