LCOV - code coverage report
Current view: top level - theme - text_styles.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 1 13 7.7 %
Date: 2022-07-13 09:29:13 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:basf_flutter_components/basf_flutter_components.dart';
       2             : import 'package:flutter/cupertino.dart';
       3             : 
       4             : /// A collection of BASF Text Styles
       5             : abstract class BasfTextStyles {
       6             :   const BasfTextStyles._();
       7             : 
       8             :   // InputField
       9             :   // InputField - The Label on the top of the InputField
      10             : 
      11             :   // InputField - Label Appearance
      12             :   static const TextStyle _defaultFieldLabel = TextStyle(
      13             :     fontSize: 12,
      14             :     fontWeight: FontWeight.w400,
      15             :   );
      16             : 
      17             :   // InputField - Text Appearance
      18             :   static const TextStyle _defaultFieldText = TextStyle(
      19             :     fontSize: 16,
      20             :     fontWeight: FontWeight.w400,
      21             :   );
      22             : 
      23             :   /// InputField - Label (Top)
      24           0 :   static final TextStyle inputFieldLabel = _defaultFieldLabel.copyWith(
      25             :     color: BasfColors.copyTextGrey,
      26             :   );
      27             : 
      28             :   /// InputField - Hint - Default
      29           0 :   static final TextStyle inputFieldHint = _defaultFieldText.copyWith(
      30           0 :     color: BasfColors.darkBlue[400],
      31             :   );
      32             : 
      33             :   /// InputField - Hint - Error
      34           0 :   static final TextStyle inputFieldHintError = _defaultFieldText.copyWith(
      35           0 :     color: BasfColors.red[300],
      36             :   );
      37             : 
      38             :   /// InputField - Hint - Focus
      39           0 :   static final TextStyle inputFieldHintFocus = _defaultFieldText.copyWith(
      40           0 :     color: BasfColors.darkBlue[500],
      41             :   );
      42             : 
      43             :   /// InputField - Hint - Disabled
      44             :   /// InputField - Text Input - Disabled
      45           0 :   static final TextStyle inputFieldDisabled = _defaultFieldText.copyWith(
      46             :     color: BasfColors.darkGrey,
      47             :   );
      48             : 
      49             :   /// InputField - Text Input - Default
      50           0 :   static final TextStyle inputFieldInput = _defaultFieldText.copyWith(
      51             :     color: BasfColors.copyTextGrey,
      52             :   );
      53             : 
      54             :   /// InputField - Text Input - Error
      55           0 :   static final TextStyle inputFieldError = _defaultFieldText.copyWith(
      56             :     color: BasfColors.red,
      57             :   );
      58             : 
      59             :   /// InputField - Error Label (Bottom)
      60           0 :   static final TextStyle inputFieldErrorLabel = _defaultFieldLabel.copyWith(
      61             :     color: BasfColors.red,
      62             :   );
      63             : 
      64             :   // Buttons
      65             : 
      66             :   /// Contained Button - Default
      67             :   static const TextStyle containedButton = TextStyle(
      68             :     fontSize: 16,
      69             :     fontWeight: FontWeight.w700,
      70             :     color: BasfColors.white,
      71             :   );
      72             : 
      73             :   /// Contained Button - Disabled Negative
      74             :   static const TextStyle containedButtonDisabledNegative = TextStyle(
      75             :     fontSize: 16,
      76             :     fontWeight: FontWeight.w700,
      77             :     color: BasfColors.copyTextGrey,
      78             :   );
      79             : 
      80             :   /// Footer
      81             :   static const TextStyle footer = TextStyle(
      82             :     fontSize: 12,
      83             :     fontWeight: FontWeight.normal,
      84             :     color: BasfColors.darkGrey,
      85             :   );
      86             : 
      87             :   /// Version
      88             :   static const TextStyle version = TextStyle(
      89             :     fontSize: 12,
      90             :     fontWeight: FontWeight.normal,
      91             :     color: BasfColors.darkGrey,
      92             :   );
      93             : 
      94             :   /// Alert Dialog
      95             :   static const alertDialogTitle = TextStyle(
      96             :     fontSize: 18,
      97             :     fontWeight: FontWeight.bold,
      98             :   );
      99             : 
     100             :   /// Alert Dialog Body
     101             :   static const alertDialogBody = TextStyle(
     102             :     fontSize: 18,
     103             :     fontWeight: FontWeight.normal,
     104             :   );
     105             : 
     106             :   /// Alert Dialog Dismiss
     107             :   static const alertDialogDismiss = TextStyle(
     108             :     fontSize: 16,
     109             :     fontWeight: FontWeight.normal,
     110             :     color: BasfColors.red,
     111             :   );
     112             : 
     113             :   /// Alert Dialog Confirm
     114             :   static const alertDialogConfirm = TextStyle(
     115             :     fontSize: 16,
     116             :     fontWeight: FontWeight.normal,
     117             :     color: BasfColors.darkBlue,
     118             :   );
     119             : }
     120             : 
     121             : /// Custom text style used at BASF Themes
     122             : class CustomTextStyle extends TextStyle {
     123             :   /// Custom text style used at BASF Themes
     124           1 :   const CustomTextStyle({
     125             :     Color super.color = BasfColors.copyTextGrey,
     126             :     super.fontSize,
     127             :     super.fontFamily,
     128             :     super.fontWeight,
     129             :     double? lineHeight,
     130             :     super.letterSpacing,
     131           0 :   }) : super(height: lineHeight);
     132             : }

Generated by: LCOV version 1.16