Closed Mohammadhamza43 closed 2 years ago
getting this error how to resolve this. Here is the code return Scaffold( appBar: AppBar( backgroundColor: Colors.indigo, title: Text("Saved Cards"), ), body: Builder(builder: (BuildContext context) { return Column( // mainAxisAlignment: MainAxisAlignment.end, children: [ CreditCard( cardNumber: "5450 7879 4864 7854", cardExpiry: "10/25", cardHolderName: "Mohammad Hamza Gaya", cvv: "456", bankName: "Axis Bank", showBackSide: false, frontBackground: CardBackgrounds.black, backBackground: CardBackgrounds.black, showShadow: false, ), Padding( padding: const EdgeInsets.all(8.0), child: Container( color: Colors.indigo, child: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ Expanded( child: FlatButton( onPressed: () { Navigator.pushNamed(context, '/addNewCard'); }, child: Text( "Add New Card", style: TextStyle(fontSize: 18, color: Colors.white), )), ), ], )), ), ], ); }), );
Thanks, for this. I'll take a look at it.
Is the issue resolved? I'm too facing the same issue
I'm too facing the same issue
+1
This is fixed in the latest version.
getting this error how to resolve this. Here is the code return Scaffold( appBar: AppBar( backgroundColor: Colors.indigo, title: Text("Saved Cards"), ), body: Builder(builder: (BuildContext context) { return Column( // mainAxisAlignment: MainAxisAlignment.end, children:[
CreditCard(
cardNumber: "5450 7879 4864 7854",
cardExpiry: "10/25",
cardHolderName: "Mohammad Hamza Gaya",
cvv: "456",
bankName: "Axis Bank",
showBackSide: false,
frontBackground: CardBackgrounds.black,
backBackground: CardBackgrounds.black,
showShadow: false,
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
color: Colors.indigo,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(
child: FlatButton(
onPressed: () {
Navigator.pushNamed(context, '/addNewCard');
},
child: Text(
"Add New Card",
style:
TextStyle(fontSize: 18, color: Colors.white),
)),
),
],
)),
),
],
);
}),
);