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!

Libraries

main
util/_/build_app/function/before_material_app/_
util/_/build_app/function/before_material_app/bot_toast_lego/_
util/_/build_app/function/before_material_app/theme_config_lego/_
util/_/build_app/function/before_run_app/_
util/_/build_app/function/before_run_app/theme_config_lego/_
util/_/build_app/widget/material_app/_
util/_/build_app/widget/material_app/bot_toast_lego/_
util/_/build_app/widget/material_app/theme_config_lego/_
util/_/build_app/widget/my_app/_
util/_/build_app/widget/my_app/theme_config_lego/_
util/_/build_app/widget/run_app/_
util/_/build_app/widget/run_app/screenutil_lego/_
util/_/build_app/widget/run_app/theme_config_lego/_
util/_/module_functions/theme_config_lego/_
util/_/shared_params/_/material_app
util/_/shared_params/_/start_app_params
util/_/shared_params/bot_toast_lego/_
util/_/shared_params/theme_config_lego/_
util/config/theme_config_lego/_
widget_book/theme_config_lego.bottom_sheet/_/_
widget_book/theme_config_lego.bottom_sheet/bottom_sheet
widget_book/theme_config_lego.bottom_sheet/usage
widget_book/theme_config_lego.dialog/_/_
widget_book/theme_config_lego.dialog/dialog
widget_book/theme_config_lego.dialog/usage
widget_book/theme_config_lego.in_app_notification/_/_
widget_book/theme_config_lego.in_app_notification/in_app_notification
widget_book/theme_config_lego.in_app_notification/usage
widget_book/theme_config_lego.snackbar/_/_
widget_book/theme_config_lego.snackbar/snackbar
widget_book/theme_config_lego.snackbar/usage
widget_book/theme_config_lego.toast/_/_
widget_book/theme_config_lego.toast/toast
widget_book/theme_config_lego.toast/usage
widget_book/theme_config_lego/_/_