CreditCardWidget constructor

const CreditCardWidget({
  1. Key? key,
  2. String labelTextNum = 'Numero do cartão',
  3. String labelTextName = 'Nome no cartão',
  4. String labelTextExpData = 'MM/YY',
  5. String labelTextCVV = 'CVV/CVC',
  6. String labelTextCPF = 'CPF do Titular',
  7. String labelTextButton = 'Efetuar pagamento',
  8. String titleCreditCard = 'Cartão de Crédito',
  9. String labelTextValidate = 'Valido Até',
  10. String textRequired = 'Campo é obrigatorio',
  11. String textSelectBand = 'Selecione a bandeira',
  12. String textNameMin = 'O nome de conter pelo menos 6 caracteres',
  13. String textIntroNameValid = 'Insira um nome válido',
  14. String textCardExpired = 'Cartão vencido',
  15. String textInvalidateMonth = 'Mês incorreto.',
  16. Color colorButton = const Color(0xFFfec177),
  17. Color colorTextButton = Colors.white,
  18. Color colorTextField = Colors.grey,
  19. Color colorCardSelect = const Color(0xFFfec177),
  20. Color colorCreditWhite = const Color(0xff535252),
  21. Color colorCreditBlack = const Color(0xff211e1e),
  22. double textSizeNumber = 0.06,
  23. double textSizeName = 0.045,
  24. double textSizeMonth = 0.03,
  25. double textSizeCVC = 0.03,
  26. List<String> listBand = const ['visa', 'mastercard', 'amex', 'elo', 'dinersclub', 'discover', 'jcb', 'aura', 'hiper', 'hipercard', 'rupay'],
  27. bool viewLayout = false,
  28. bool cpfVisibility = true,
  29. required dynamic onTap(),
})

Implementation

const CreditCardWidget(
    {Key? key,
    this.labelTextNum = 'Numero do cartão',
    this.labelTextName = 'Nome no cartão',
    this.labelTextExpData = 'MM/YY',
    this.labelTextCVV = 'CVV/CVC',
    this.labelTextCPF = 'CPF do Titular',
    this.labelTextButton = 'Efetuar pagamento',
    this.titleCreditCard = 'Cartão de Crédito',
    this.labelTextValidate = 'Valido Até',
    this.textRequired = 'Campo é obrigatorio',
    this.textSelectBand = 'Selecione a bandeira',
    this.textNameMin = 'O nome de conter pelo menos 6 caracteres',
    this.textIntroNameValid = 'Insira um nome válido',
    this.textCardExpired = 'Cartão vencido',
    this.textInvalidateMonth = 'Mês incorreto.',
    this.colorButton = const Color(0xFFfec177),
    this.colorTextButton = Colors.white,
    this.colorTextField = Colors.grey,
    this.colorCardSelect = const Color(0xFFfec177),
    this.colorCreditWhite = const Color(0xff535252),
    this.colorCreditBlack = const Color(0xff211e1e),
    this.textSizeNumber = 0.06,
    this.textSizeName = 0.045,
    this.textSizeMonth = 0.03,
    this.textSizeCVC = 0.03,
    this.listBand = const [
      'visa',
      'mastercard',
      'amex',
      'elo',
      'dinersclub',
      'discover',
      'jcb',
      'aura',
      'hiper',
      'hipercard',
      'rupay'
    ],
    this.viewLayout = false,
    this.cpfVisibility = true,
    required this.onTap})
    : super(key: key);