FMCreditCard constructor

const FMCreditCard({
  1. Key? key,
  2. double width = 430.0,
  3. double height = 230.0,
  4. EdgeInsetsGeometry padding = const EdgeInsets.all(10),
  5. EdgeInsetsGeometry margin = const EdgeInsets.all(10),
  6. Color color = const Color(0xFF49B7AE),
  7. DecorationImage? image,
  8. BoxBorder? border,
  9. BorderRadiusGeometry? borderRadius = const BorderRadius.all(Radius.circular(15)),
  10. List<BoxShadow>? boxShadow,
  11. Gradient? gradient,
  12. String title = "Flutterme Card",
  13. TextStyle titleStyle = const TextStyle(fontSize: 16, color: Colors.white, fontWeight: FontWeight.bold),
  14. String number = "0000000000000000",
  15. TextStyle numberStyle = const TextStyle(fontSize: 24, color: Colors.white, fontWeight: FontWeight.bold),
  16. FMMaskType numberMaskType = FMMaskType.full,
  17. String validThru = "0199",
  18. TextStyle validThruStyle = const TextStyle(color: Colors.white),
  19. FMMaskType validThruMaskType = FMMaskType.full,
  20. String cvv = "000",
  21. TextStyle cvvStyle = const TextStyle(color: Colors.white),
  22. FMMaskType cvvMaskType = FMMaskType.full,
  23. String holder = "John Doe",
  24. TextStyle holderStyle = const TextStyle(fontSize: 20, color: Colors.white),
})

Flutterme Credit Card

Creates a customizable credit card widget with validations.

Made By Flutterme @https://github.com/fluttermeorg

Implementation

const FMCreditCard({
  super.key,
  this.width = 430.0,
  this.height = 230.0,
  this.padding = const EdgeInsets.all(10),
  this.margin = const EdgeInsets.all(10),
  this.color = const Color(0xFF49B7AE),
  this.image,
  this.border,
  this.borderRadius = const BorderRadius.all(Radius.circular(15)),
  this.boxShadow,
  this.gradient,
  this.title = "Flutterme Card",
  this.titleStyle = const TextStyle(
    fontSize: 16,
    color: Colors.white,
    fontWeight: FontWeight.bold,
  ),
  this.number = "0000000000000000",
  this.numberStyle = const TextStyle(
    fontSize: 24,
    color: Colors.white,
    fontWeight: FontWeight.bold,
  ),
  this.numberMaskType = FMMaskType.full,
  this.validThru = "0199",
  this.validThruStyle = const TextStyle(color: Colors.white),
  this.validThruMaskType = FMMaskType.full,
  this.cvv = "000",
  this.cvvStyle = const TextStyle(color: Colors.white),
  this.cvvMaskType = FMMaskType.full,
  this.holder = "John Doe",
  this.holderStyle = const TextStyle(fontSize: 20, color: Colors.white),
});