implement card in flutter code example

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

Example 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),

      ),
    );

Tags:

Misc Example