Answers for "card size in flutter"

2

set width card flutter

SizedBox(
        width: double.infinity,
        height: 300,
        child: Card(
          elevation: 2,
          child: Text("test")
         ),
      )
Posted by: Guest on August-01-2020
5

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,
  ),
)
Posted by: Guest on September-03-2020
2

card height and width flutter

Container(
  height: 500,
  child: Card(
    child: Image.network(
      'https://placeimg.com/640/480/any', fit: BoxFit.fill,),
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(10.0),
    ),
    elevation: 5,
    margin: EdgeInsets.all(10),
  ),
),
Posted by: Guest on July-08-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language