FMCreditCard constructor
const
FMCreditCard({
- Key? key,
- double width = 430.0,
- double height = 230.0,
- EdgeInsetsGeometry padding = const EdgeInsets.all(10),
- EdgeInsetsGeometry margin = const EdgeInsets.all(10),
- Color color = const Color(0xFF49B7AE),
- DecorationImage? image,
- BoxBorder? border,
- BorderRadiusGeometry? borderRadius = const BorderRadius.all(Radius.circular(15)),
- List<
BoxShadow> ? boxShadow, - Gradient? gradient,
- String title = "Flutterme Card",
- TextStyle titleStyle = const TextStyle(fontSize: 16, color: Colors.white, fontWeight: FontWeight.bold),
- String number = "0000000000000000",
- TextStyle numberStyle = const TextStyle(fontSize: 24, color: Colors.white, fontWeight: FontWeight.bold),
- FMMaskType numberMaskType = FMMaskType.full,
- String validThru = "0199",
- TextStyle validThruStyle = const TextStyle(color: Colors.white),
- FMMaskType validThruMaskType = FMMaskType.full,
- String cvv = "000",
- TextStyle cvvStyle = const TextStyle(color: Colors.white),
- FMMaskType cvvMaskType = FMMaskType.full,
- String holder = "John Doe",
- 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),
});