does a card takes the shape of it's parent in flutter code example
Example: set width card flutter
SizedBox(
width: double.infinity,
height: 300,
child: Card(
elevation: 2,
child: Text("test")
),
)