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