card color in card flutter code example

Example 1: card background color flutter

Card(
  color: Colors.grey,
)

Example 2: 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: () {/* ... */},
          ),
        ],
      ),
    ],
  ),
);

Tags:

Dart Example