Answers for "image in card flutter"

1

flutter card with image and text

Card(
      child: Container(
        decoration: BoxDecoration(
          image: DecorationImage(
            image: AssetImage("images/image.png"),
            fit: BoxFit.fitWidth,
            alignment: Alignment.topCenter,
          ),
        ),
        child: Text("YOUR TEXT"),
      ),
    ),
Posted by: Guest on February-08-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 "image in card flutter"

Browse Popular Code Answers by Language