Answers for "card class in flutter"

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

how to add cards in flutter

Container(

      width: 300,
      height: 100,
      child: Card(
        shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(15.0),

        ),
        color: Colors.lightBlueAccent.withOpacity(0.5),

      ),
    );
Posted by: Guest on March-04-2021
1

flutter card

Card(
  child: Column(
    mainAxisSize: MainAxisSize.min,
    children: <Widget>[
      const ListTile(
        leading: Icon(Icons.check),
        title: Text('TITLE'),
        subtitle: Text('SUBTITLE'),
      ),
      ButtonBar(
        children: <Widget>[
          FlatButton(
            child: const Text('BTN1'),
            onPressed: () {/* ... */},
          ),
          FlatButton(
            child: const Text('BTN2'),
            onPressed: () {/* ... */},
          ),
        ],
      ),
    ],
  ),
);
Posted by: Guest on August-18-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language