card_input_field 1.2.2 icon indicating copy to clipboard operation
card_input_field: ^1.2.2 copied to clipboard

Flutter plugin for input bank card number.

card_input_field #

4 inputs field like bank card number for enter your card number

Usage #

Import this line in Flutter pubspec #

card_input_field: <Last Version>

TO Use #

import 'package:card_input_field/card_input_field.dart';

After import library

##

CardInputField cardInput = CardInputField();

you can also pass onChange and nextFocusNode to constructor

After into a Widget like below use it

Center(child: cardInput)

and for read value of fields into onTap or onPressed a button

onTap: (){
    cardInput.controllers.forEach((element) {
        print(element.text);
    });
}

or set a value into a field

onTap: (){
    cardInput.controllers[0].text = '4556';
}

and do not forget #

@override
void dispose() {
    /// number of controllers is 4
    cardInput.controllers.forEach((element) {
      element.dispose();
    });
    super.dispose();
}

It is very simple to use, you can see main file into git repository

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

11
likes
100
pub points
49%
popularity

Publisher

unverified uploader

Flutter plugin for input bank card number.

Homepage

Documentation

API reference

License

Icon for licenses.Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on card_input_field