Card Shape Flutter Code Example


Example 1: custom card shape flutter

Card(							//Card with circular border   shape: RoundedRectangleBorder(     borderRadius: BorderRadius.circular(15.0),	   ),   child: Text(     'Card with circular border',     textScaleFactor: 1.2,   ), ), Card(							//Card with beveled border   shape: BeveledRectangleBorder(     borderRadius: BorderRadius.circular(10.0),	   ),   child: Text(     'Card with Beveled border',     textScaleFactor: 1.2,   ), ), Card(   shape: StadiumBorder(			//Card with stadium border   side: BorderSide(     color: Colors.black,     width: 2.0,   ), ),   child: Text(     'Card with Beveled border',     textScaleFactor: 1.2,   ), ),

Example 2: shape property of card in flutter

Card(   elevation: 5,   shape: RoundedRectangleBorder(   borderRadius: BorderRadius.circular(10),   ),   child: ListTile(), )

Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?