iamvivekkaushik / AwesomeCard

A Flutter package to easily create a Credit Card in your application.
MIT License
151 stars 86 forks source link

BackgroundCard Color #5

Closed CharlyIglesias closed 4 years ago

CharlyIglesias commented 4 years ago

Is there any way that we can change the BackgroundCard Color? For example red or blue so we can make it approach to the user's card.

Thank You

iamvivekkaushik commented 4 years ago

Oh yeah, totally. Just check the constructor here.

You just need to pass the color to the frontBackground and backBackground argument depending on which side color you are trying to change.

CharlyIglesias commented 4 years ago

but when I tried and the unique colors available are white and black

CharlyIglesias commented 4 years ago

Okay, I could made it by adding a Container(color: Colors.whateverColor) on the frontBackground or the backBackground

iamvivekkaushik commented 4 years ago

Yeah, just pass this as your frontBackground or the backBackground argument.

 Container(
    width: double.maxFinite,
    height: double.maxFinite,
    color: Colors.whateverColor,
  );