Skip to content
On this page

BankCardInput

A payment card field with brand-aware formatting.

BankCardInput in FluttyUIBankCardInput in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

BankCardInput

const BankCardInput({
  super.key,
  this.size,
  required this.controller,
  this.onChanged,
  this.onBrandChanged,
  this.onSubmitted,
  this.focusNode,
  this.placeholder,
  this.enabled = true,
  this.readOnly = false,
  this.isInvalid = false,
  this.autofocus = false,
  this.textInputAction = TextInputAction.next,
  this.backgroundColor,
  this.foregroundColor,
  this.placeholderColor,
  this.focusedBorderColor,
  this.borderRadius,
  this.height,
  this.fontSize,
  this.padding,
});
ParameterTypeRequiredDefault
keyKey?Nonull
sizeComponentSize?Nonull
controllerTextEditingControllerYes—
onChangedValueChanged<BankCardValue>?Nonull
onBrandChangedValueChanged<BankCardBrand>?Nonull
onSubmittedValueChanged<BankCardValue>?Nonull
focusNodeFocusNode?Nonull
placeholderString?Nonull
enabledboolNotrue
readOnlyboolNofalse
isInvalidboolNofalse
autofocusboolNofalse
textInputActionTextInputActionNoTextInputAction.next
backgroundColorColor?Nonull
foregroundColorColor?Nonull
placeholderColorColor?Nonull
focusedBorderColorColor?Nonull
borderRadiusdouble?Nonull
heightdouble?Nonull
fontSizedouble?Nonull
paddingEdgeInsetsGeometry?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/forms/bank_card_input/bank_card_input.dart

This reference is generated from the BankCardInput declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI