diff --git a/asset/fonts/Poppins-Black.ttf b/asset/fonts/Poppins-Black.ttf new file mode 100644 index 0000000..a9520b7 Binary files /dev/null and b/asset/fonts/Poppins-Black.ttf differ diff --git a/asset/fonts/Poppins-BlackItalic.ttf b/asset/fonts/Poppins-BlackItalic.ttf new file mode 100644 index 0000000..ebfdd70 Binary files /dev/null and b/asset/fonts/Poppins-BlackItalic.ttf differ diff --git a/asset/fonts/Poppins-Bold.ttf b/asset/fonts/Poppins-Bold.ttf new file mode 100644 index 0000000..b94d47f Binary files /dev/null and b/asset/fonts/Poppins-Bold.ttf differ diff --git a/asset/fonts/Poppins-BoldItalic.ttf b/asset/fonts/Poppins-BoldItalic.ttf new file mode 100644 index 0000000..e2e6445 Binary files /dev/null and b/asset/fonts/Poppins-BoldItalic.ttf differ diff --git a/asset/fonts/Poppins-ExtraBold.ttf b/asset/fonts/Poppins-ExtraBold.ttf new file mode 100644 index 0000000..8f008c3 Binary files /dev/null and b/asset/fonts/Poppins-ExtraBold.ttf differ diff --git a/asset/fonts/Poppins-ExtraBoldItalic.ttf b/asset/fonts/Poppins-ExtraBoldItalic.ttf new file mode 100644 index 0000000..b2a9bf5 Binary files /dev/null and b/asset/fonts/Poppins-ExtraBoldItalic.ttf differ diff --git a/asset/fonts/Poppins-ExtraLight.ttf b/asset/fonts/Poppins-ExtraLight.ttf new file mode 100644 index 0000000..ee62382 Binary files /dev/null and b/asset/fonts/Poppins-ExtraLight.ttf differ diff --git a/asset/fonts/Poppins-ExtraLightItalic.ttf b/asset/fonts/Poppins-ExtraLightItalic.ttf new file mode 100644 index 0000000..e392492 Binary files /dev/null and b/asset/fonts/Poppins-ExtraLightItalic.ttf differ diff --git a/asset/fonts/Poppins-Italic.ttf b/asset/fonts/Poppins-Italic.ttf new file mode 100644 index 0000000..4620399 Binary files /dev/null and b/asset/fonts/Poppins-Italic.ttf differ diff --git a/asset/fonts/Poppins-Light.ttf b/asset/fonts/Poppins-Light.ttf new file mode 100644 index 0000000..2ab0221 Binary files /dev/null and b/asset/fonts/Poppins-Light.ttf differ diff --git a/asset/fonts/Poppins-LightItalic.ttf b/asset/fonts/Poppins-LightItalic.ttf new file mode 100644 index 0000000..6f9279d Binary files /dev/null and b/asset/fonts/Poppins-LightItalic.ttf differ diff --git a/asset/fonts/Poppins-Medium.ttf b/asset/fonts/Poppins-Medium.ttf new file mode 100644 index 0000000..e90e87e Binary files /dev/null and b/asset/fonts/Poppins-Medium.ttf differ diff --git a/asset/fonts/Poppins-MediumItalic.ttf b/asset/fonts/Poppins-MediumItalic.ttf new file mode 100644 index 0000000..d8a251c Binary files /dev/null and b/asset/fonts/Poppins-MediumItalic.ttf differ diff --git a/asset/fonts/Poppins-Regular.ttf b/asset/fonts/Poppins-Regular.ttf new file mode 100644 index 0000000..be06e7f Binary files /dev/null and b/asset/fonts/Poppins-Regular.ttf differ diff --git a/asset/fonts/Poppins-SemiBold.ttf b/asset/fonts/Poppins-SemiBold.ttf new file mode 100644 index 0000000..dabf7c2 Binary files /dev/null and b/asset/fonts/Poppins-SemiBold.ttf differ diff --git a/asset/fonts/Poppins-SemiBoldItalic.ttf b/asset/fonts/Poppins-SemiBoldItalic.ttf new file mode 100644 index 0000000..29d5f74 Binary files /dev/null and b/asset/fonts/Poppins-SemiBoldItalic.ttf differ diff --git a/asset/fonts/Poppins-Thin.ttf b/asset/fonts/Poppins-Thin.ttf new file mode 100644 index 0000000..f5c0fdd Binary files /dev/null and b/asset/fonts/Poppins-Thin.ttf differ diff --git a/asset/fonts/Poppins-ThinItalic.ttf b/asset/fonts/Poppins-ThinItalic.ttf new file mode 100644 index 0000000..b910089 Binary files /dev/null and b/asset/fonts/Poppins-ThinItalic.ttf differ diff --git a/lib/core/constants/app/app_constants.dart b/lib/core/constants/app/app_constants.dart index 26ac37b..fa21986 100644 --- a/lib/core/constants/app/app_constants.dart +++ b/lib/core/constants/app/app_constants.dart @@ -1,7 +1,7 @@ class ApplicationConstants { static const LANG_ASSET_PATH = "asset/lang"; static const IPAD_NAME = "IPAD"; - + static const FONT_FAMILY = "POPPINS"; static const COMPANY_NAME = "HWA"; static const EMAIL_REGIEX = r"^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}\$"; diff --git a/lib/core/init/theme/app_theme_light.dart b/lib/core/init/theme/app_theme_light.dart index 76f3d86..2ed9c4b 100644 --- a/lib/core/init/theme/app_theme_light.dart +++ b/lib/core/init/theme/app_theme_light.dart @@ -1,7 +1,10 @@ import 'package:flutter/material.dart'; +import 'package:fluttermvvmtemplate/core/constants/app/app_constants.dart'; import 'package:fluttermvvmtemplate/core/init/theme/app_theme.dart'; -class AppThemeLight extends AppTheme { +import 'light/light_theme_interface.dart'; + +class AppThemeLight extends AppTheme with ILightTheme { static AppThemeLight _instance; static AppThemeLight get instance { if (_instance == null) _instance = AppThemeLight._init(); @@ -10,5 +13,41 @@ class AppThemeLight extends AppTheme { AppThemeLight._init(); - ThemeData get theme => ThemeData.light(); + // ThemeData get theme => redTheme; + ThemeData get theme => ThemeData( + fontFamily: ApplicationConstants.FONT_FAMILY, + colorScheme: _appColorScheme(), + textTheme: textTheme(), + floatingActionButtonTheme: ThemeData.light().floatingActionButtonTheme.copyWith(), + tabBarTheme: tabBarTheme(), + ); + + TabBarTheme tabBarTheme() { + return TabBarTheme( + labelPadding: insets.lowPaddingAll, + unselectedLabelStyle: textThemeLight.headline4.copyWith(color: colorSchemeLight.red), + ); + } + + TextTheme textTheme() { + return TextTheme( + headline1: textThemeLight.headline1, headline2: textThemeLight.headline2, overline: textThemeLight.headline3); + } + + ColorScheme _appColorScheme() { + return ColorScheme( + primary: colorSchemeLight.black, + primaryVariant: Colors.white, + secondary: Colors.green, + secondaryVariant: Colors.green[200], + surface: Colors.blue, + background: Colors.white, + error: Colors.red[900], + onPrimary: Colors.greenAccent, + onSecondary: Colors.black38, + onSurface: Colors.white30, + onBackground: Colors.black12, + onError: Colors.red, + brightness: Brightness.light); + } } diff --git a/lib/core/init/theme/light/color_scheme_light.dart b/lib/core/init/theme/light/color_scheme_light.dart new file mode 100644 index 0000000..7d592ad --- /dev/null +++ b/lib/core/init/theme/light/color_scheme_light.dart @@ -0,0 +1,19 @@ +import 'package:flutter/material.dart'; + +class ColorSchemeLight { + static ColorSchemeLight _instace; + static ColorSchemeLight get instance { + if (_instace == null) _instace = ColorSchemeLight._init(); + return _instace; + } + + ColorSchemeLight._init(); + + final Color brown = Color(0xffa87e6f); + final Color red = Color(0xffc10e0e); + final Color white = Color(0xffffffff); + final Color gray = Color(0xffa5a6ae); + final Color lightGray = Color(0xfff7f7f7); + final Color darkGray = Color(0xff676870); + final Color black = Color(0xff020306); +} diff --git a/lib/core/init/theme/light/light_theme_interface.dart b/lib/core/init/theme/light/light_theme_interface.dart new file mode 100644 index 0000000..79ca933 --- /dev/null +++ b/lib/core/init/theme/light/light_theme_interface.dart @@ -0,0 +1,9 @@ +import 'package:fluttermvvmtemplate/core/init/theme/light/color_scheme_light.dart'; +import 'package:fluttermvvmtemplate/core/init/theme/light/padding_insets.dart'; +import 'package:fluttermvvmtemplate/core/init/theme/light/text_theme_light.dart'; + +abstract class ILightTheme { + TextThemeLight textThemeLight = TextThemeLight.instance; + ColorSchemeLight colorSchemeLight = ColorSchemeLight.instance; + PaddingInsets insets = PaddingInsets(); +} diff --git a/lib/core/init/theme/light/padding_insets.dart b/lib/core/init/theme/light/padding_insets.dart new file mode 100644 index 0000000..a1b6f74 --- /dev/null +++ b/lib/core/init/theme/light/padding_insets.dart @@ -0,0 +1,5 @@ +import 'package:flutter/rendering.dart'; + +class PaddingInsets { + final lowPaddingAll = EdgeInsets.all(5); +} diff --git a/lib/core/init/theme/light/text_theme_light.dart b/lib/core/init/theme/light/text_theme_light.dart new file mode 100644 index 0000000..174f047 --- /dev/null +++ b/lib/core/init/theme/light/text_theme_light.dart @@ -0,0 +1,18 @@ +import 'package:flutter/material.dart'; + +class TextThemeLight { + static TextThemeLight _instace; + static TextThemeLight get instance { + if (_instace == null) _instace = TextThemeLight._init(); + return _instace; + } + + TextThemeLight._init(); + + final TextStyle headline1 = TextStyle(fontSize: 96, fontWeight: FontWeight.w300, letterSpacing: -1.5); + final TextStyle headline2 = TextStyle(fontSize: 60, fontWeight: FontWeight.w300, letterSpacing: -0.5); + final TextStyle headline3 = TextStyle(fontSize: 48, fontWeight: FontWeight.w400); + final TextStyle headline4 = TextStyle(fontSize: 34, fontWeight: FontWeight.w400, letterSpacing: 0.25); + final TextStyle headline5 = TextStyle(fontSize: 24, fontWeight: FontWeight.w400); + final TextStyle overline = TextStyle(fontSize: 10, fontWeight: FontWeight.w400, letterSpacing: 1.5); +} diff --git a/lib/core/init/theme/panache/red_theme.dart b/lib/core/init/theme/panache/red_theme.dart new file mode 100644 index 0000000..50f913e --- /dev/null +++ b/lib/core/init/theme/panache/red_theme.dart @@ -0,0 +1,429 @@ +import 'package:flutter/material.dart'; + +const String FONT_FAMILY = "Poppins"; + +final ThemeData redTheme = ThemeData( + fontFamily: FONT_FAMILY, + primarySwatch: Colors.red, + brightness: Brightness.light, + primaryColor: Color(0xffC20003), //xxx + primaryColorBrightness: Brightness.dark, + primaryColorLight: Color(0xffffcdd2), + primaryColorDark: Color(0xffd32f2f), + accentColor: Color(0xfff44336), + accentColorBrightness: Brightness.dark, + canvasColor: Color(0xfffafafa), //XX + scaffoldBackgroundColor: Color(0xfffafafa), //xx + bottomAppBarColor: Color(0xffffffff), + cardColor: Color(0xffffffff), + + dividerColor: Color(0xffffffff), //XX + highlightColor: Color(0x66bcbcbc), + splashColor: Color(0xffE8E8E8), + selectedRowColor: Color(0xfff5f5f5), + unselectedWidgetColor: Color(0x8a000000), + disabledColor: Color(0x61000000), //xx + buttonColor: Color(0xffe0e0e0), + toggleableActiveColor: Color(0xffe53935), + secondaryHeaderColor: Color(0xffffebee), + textSelectionColor: Color(0xffef9a9a), + cursorColor: Color(0xff4285f4), + textSelectionHandleColor: Color(0xffe57373), + backgroundColor: Color(0xffef9a9a), + toggleButtonsTheme: ToggleButtonsThemeData( + fillColor: Color(0xffC20003), textStyle: TextStyle(color: Colors.white), selectedColor: Colors.white), + floatingActionButtonTheme: FloatingActionButtonThemeData(backgroundColor: Color(0xffC20003)), + + dialogBackgroundColor: Color(0xffffffff), + + indicatorColor: Color(0xffC20003), //XX + hintColor: Color(0x8a000000), //xx + errorColor: Color(0xffd32f2f), + buttonTheme: ButtonThemeData( + textTheme: ButtonTextTheme.normal, + minWidth: 88, + height: 36, + padding: EdgeInsets.only(top: 0, bottom: 0, left: 16, right: 16), + shape: RoundedRectangleBorder( + side: BorderSide( + color: Color(0xff000000), + width: 0, + style: BorderStyle.none, + ), + borderRadius: BorderRadius.all(Radius.circular(2.0)), + ), + alignedDropdown: false, + buttonColor: Color(0xffe0e0e0), + disabledColor: Color(0x61000000), + highlightColor: Color(0x29000000), + splashColor: Color(0x1f000000), + focusColor: Color(0x1f000000), + hoverColor: Color(0x0a000000), + colorScheme: ColorScheme( + primary: Color(0xfff44336), + primaryVariant: Color(0xffd32f2f), + secondary: Color(0xffC20003), //xx + secondaryVariant: Color(0xffd32f2f), + surface: Color(0xffffffff), + background: Color(0xffef9a9a), + error: Color(0xffd32f2f), + onPrimary: Color(0xffffffff), //xx + onSecondary: Color(0xff000000), + onSurface: Color(0xff000000), + onBackground: Color(0xffffffff), + onError: Color(0xffffffff), + brightness: Brightness.light, + ), + ), + + textTheme: TextTheme( + //XX + headline1: TextStyle( + color: Color(0x8a000000), + fontSize: 35, + fontWeight: FontWeight.bold, + fontStyle: FontStyle.normal, + ), + headline2: TextStyle( + //XX + color: Color(0xdd000000), + fontSize: 30, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + headline3: TextStyle( + //XX + color: Color(0x8a000000), + fontSize: 25, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + headline4: TextStyle( + //XX + color: Color(0x8a000000), + fontSize: 20, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + headline5: TextStyle( + //XX + color: Color(0xdd000000), + fontSize: 15, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + headline6: TextStyle( + //XX + color: Color(0xdd000000), + fontSize: 12, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + subtitle1: TextStyle( + color: Color(0xdd000000), + fontSize: 15, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + bodyText1: TextStyle( + color: Color(0xdd000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + bodyText2: TextStyle( + color: Color(0xdd000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + caption: TextStyle( + color: Color(0x8a000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + button: TextStyle( + color: Color(0xdd000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + subtitle2: TextStyle( + color: Color(0xff000000), + fontSize: 12, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + overline: TextStyle( + color: Color(0xff000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + ), + primaryTextTheme: TextTheme( + //XX + headline1: TextStyle( + color: Color(0xfffafafa), + fontSize: 35, + fontWeight: FontWeight.bold, + fontStyle: FontStyle.normal, + ), + headline2: TextStyle( + //XX + color: Color(0xfffafafa), + fontSize: 30, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + headline3: TextStyle( + //XX + color: Color(0xfffafafa), + fontSize: 25, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + headline4: TextStyle( + //XX + color: Color(0xfffafafa), + fontSize: 20, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + headline5: TextStyle( + //XX + color: Color(0xfffafafa), + fontSize: 15, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + headline6: TextStyle( + //XX + color: Color(0xfffafafa), + fontSize: 12, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + subtitle1: TextStyle( + color: Color(0xfffafafa), + fontSize: 15, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + bodyText1: TextStyle( + color: Color(0xfffafafa), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + bodyText2: TextStyle( + color: Color(0xffffffff), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + caption: TextStyle( + color: Color(0xb3ffffff), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + button: TextStyle( + color: Color(0xffffffff), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + subtitle2: TextStyle( + color: Color(0xffffffff), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + overline: TextStyle( + color: Color(0xffffffff), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + ), + + inputDecorationTheme: InputDecorationTheme( + labelStyle: TextStyle( + color: Color(0xdd000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + helperStyle: TextStyle( + color: Color(0xdd000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + hintStyle: TextStyle( + color: Color(0xdd000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + errorStyle: TextStyle( + color: Color(0xdd000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + errorMaxLines: null, + isDense: false, + contentPadding: EdgeInsets.only(top: 12, bottom: 12, left: 0, right: 0), + isCollapsed: false, + prefixStyle: TextStyle( + color: Color(0xdd000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + suffixStyle: TextStyle( + color: Color(0xdd000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + counterStyle: TextStyle( + color: Color(0xdd000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + filled: false, + fillColor: Color(0x00000000), + errorBorder: UnderlineInputBorder( + borderSide: BorderSide( + color: Color(0xff000000), + width: 1, + style: BorderStyle.solid, + ), + borderRadius: BorderRadius.all(Radius.circular(4.0)), + ), + focusedBorder: UnderlineInputBorder( + borderSide: BorderSide( + color: Color(0xff000000), + width: 1, + style: BorderStyle.solid, + ), + borderRadius: BorderRadius.all(Radius.circular(4.0)), + ), + focusedErrorBorder: UnderlineInputBorder( + borderSide: BorderSide( + color: Color(0xff000000), + width: 1, + style: BorderStyle.solid, + ), + borderRadius: BorderRadius.all(Radius.circular(4.0)), + ), + disabledBorder: UnderlineInputBorder( + borderSide: BorderSide( + color: Color(0xff000000), + width: 1, + style: BorderStyle.solid, + ), + borderRadius: BorderRadius.all(Radius.circular(4.0)), + ), + enabledBorder: UnderlineInputBorder( + borderSide: BorderSide( + color: Color(0xff000000), + width: 1, + style: BorderStyle.solid, + ), + borderRadius: BorderRadius.all(Radius.circular(4.0)), + ), + border: UnderlineInputBorder( + borderSide: BorderSide( + color: Color(0xff000000), + width: 1, + style: BorderStyle.solid, + ), + borderRadius: BorderRadius.all(Radius.circular(4.0)), + ), + ), + iconTheme: IconThemeData( + color: Color(0xdd000000), + opacity: 1, + size: 24, + ), + primaryIconTheme: IconThemeData( + color: Color(0xffffffff), + opacity: 1, + size: 24, + ), + + sliderTheme: SliderThemeData( + activeTrackColor: null, + inactiveTrackColor: null, + disabledActiveTrackColor: null, + disabledInactiveTrackColor: null, + activeTickMarkColor: null, + inactiveTickMarkColor: null, + disabledActiveTickMarkColor: null, + disabledInactiveTickMarkColor: null, + thumbColor: null, + disabledThumbColor: null, + thumbShape: null, + overlayColor: null, + valueIndicatorColor: null, + valueIndicatorShape: null, + showValueIndicator: null, + valueIndicatorTextStyle: TextStyle( + color: Color(0xffffffff), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + ), + tabBarTheme: TabBarTheme( + //xx + labelStyle: TextStyle(fontSize: 14, fontWeight: FontWeight.bold), + unselectedLabelStyle: TextStyle(fontSize: 10), + indicatorSize: TabBarIndicatorSize.tab, + labelColor: Color(0xffffffff), + unselectedLabelColor: Color(0xb2ffffff), + ), + chipTheme: ChipThemeData( + backgroundColor: Color(0x1f000000), + brightness: Brightness.light, + deleteIconColor: Color(0xde000000), + disabledColor: Color(0x0c000000), + labelPadding: EdgeInsets.only(top: 0, bottom: 0, left: 8, right: 8), + labelStyle: TextStyle( + color: Color(0xde000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + padding: EdgeInsets.only(top: 4, bottom: 4, left: 4, right: 4), + secondaryLabelStyle: TextStyle( + color: Color(0x3d000000), + fontSize: null, + fontWeight: FontWeight.w400, + fontStyle: FontStyle.normal, + ), + secondarySelectedColor: Color(0x3df44336), + selectedColor: Color(0x3d000000), + shape: StadiumBorder( + side: BorderSide( + color: Color(0xff000000), + width: 0, + style: BorderStyle.none, + )), + ), + dialogTheme: DialogTheme( + shape: RoundedRectangleBorder( + side: BorderSide( + color: Color(0xff000000), + width: 0, + style: BorderStyle.none, + ), + borderRadius: BorderRadius.all(Radius.circular(0.0)), + )), +); diff --git a/lib/view/authenticate/login/view/login_view.dart b/lib/view/authenticate/login/view/login_view.dart index 393c8b9..b49a256 100644 --- a/lib/view/authenticate/login/view/login_view.dart +++ b/lib/view/authenticate/login/view/login_view.dart @@ -21,7 +21,7 @@ class LoginView extends StatelessWidget { Container( padding: context.paddingLow, height: context.height * .4, - color: context.colors.background, + color: Theme.of(context).buttonTheme.colorScheme.onPrimary, child: buildText(context), ), Padding( @@ -35,7 +35,7 @@ class LoginView extends StatelessWidget { Text buildText(BuildContext context) { return Text( "Hello", - style: context.textTheme.subtitle1, + style: context.textTheme.headline1.copyWith(color: context.theme.primaryColor, fontWeight: FontWeight.w100), ); } } diff --git a/pubspec.yaml b/pubspec.yaml index d9c7785..07f8043 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -64,17 +64,12 @@ flutter: # "family" key with the font family name, and a "fonts" key with a # list giving the asset and other descriptors for the font. For # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 + fonts: + - family: Poppins + fonts: + - asset: asset/fonts/Poppins-Regular.ttf + - asset: asset/fonts/Poppins-Bold.ttf + - asset: asset/fonts/Poppins-Light.ttf # # For details regarding fonts from package dependencies, # see https://flutter.dev/custom-fonts/#from-packages