This package provides visually beautiful UX through animation of credit card information input form.
-
Add dependency to
pubspec.yaml
Get the latest version in the 'Installing' tab on pub.dartlang.org
dependencies:
credit_card_input_form: ^1.0.4
- Import the package
import 'package:credit_card_input_form/credit_card_input_form.dart';
- Adding
CreditCardInputForm
With optional parameters
CreditCardInputForm(
cardHeight: 170,
frondCardColor: Colors.red,
backCardColor: Colors.blueAccent,
onStateChange: (currentState, cardInfo) {
print(currentState);
print(cardInfo);
},
),
Check out the example app in the example directory or the 'Example' tab on pub.dartlang.org for a more complete example.
https://pub.dev/packages/flip_card
For use card flip animation
https://pub.dev/packages/provider
For use state management
This package's animation is inspired from from this Dribbble art.