Skip to content

flutter-lego/theme_config_lego

Repository files navigation

lego project pub package

theme_config_lego

description here

Installation

  1. open terminal in the lego project root directory, enter the following command for install cli. and create a new lego project if you don't have one.
flutter pub global activate lego_cli
lego create
  1. in terminal, enter the following command for add lego to project.
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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published