credit_card_input_form 1.1.0 credit_card_input_form: ^1.1.0 copied to clipboard
This package provides visually beautiful UX through animation of credit card information input form.
import 'package:flutter/material.dart';
import 'package:credit_card_input_form/credit_card_input_form.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SafeArea(
child: AnimatedContainer(
duration: Duration(milliseconds: 300),
// color: currentColor,
child: Stack(children: [
CreditCardInputForm(
showResetButton: true,
onStateChange: (currentState, cardInfo) {
print(currentState);
print(cardInfo);
},
),
]),
),
)),
);
}
}