Answers for "add image and text 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 add text on image

Stack(
    alignment: Alignment.center,
    children: <Widget>[
        yourImageWidget,
        Text("someText"),
    ]
)
Posted by: Guest on July-15-2020

Code answers related to "add image and text in card flutter"

Browse Popular Code Answers by Language