Answers for "flutter container with image and text"

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 "flutter container with image and text"

Browse Popular Code Answers by Language