change card size flutter code example
Example 1: set width card flutter
SizedBox(
width: double.infinity,
height: 300,
child: Card(
elevation: 2,
child: Text("test")
),
)
Example 2: dart card outline
Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(40), // if you need this
side: BorderSide(
color: Colors.grey.withOpacity(0.2),
width: 1,
),
),
child: Container(
color: Colors.white,
width: 200,
height: 200,
),
)