card_input_field 0.1.1 copy "card_input_field: ^0.1.1" to clipboard
card_input_field: ^0.1.1 copied to clipboard

outdated

A new Flutter package.

card_input_field #

16 inputs field like bank card 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();

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: (){
    cardNumberInput.controllers[0].text = '4';
}

and do not forget #

@override
void dispose() {
    /// number of controllers is 16
    cardNumberInput.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.

13
likes
0
pub points
44%
popularity

Publisher

unverified uploader

A new Flutter package.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on card_input_field