Zainab Hasan
Zainab Hasan

Reputation: 37

Displaying Images beside text in flutter

How can i make a code of images beside text in my flutter app like this picture below: image beside text

Upvotes: 0

Views: 10580

Answers (1)

abdalmonem
abdalmonem

Reputation: 1422

you need to Row widget to show image and text side by side , your problem well be in image width , so you can but the image as background image to avoid image stretch size issues , see this example :

Row(
children: <Wigdet>[
  Container(
   width:100,
   height: 100,
   decoration: BoxDecoration(
     image: ImageDecoration: NetworkImage("youImageLink")
   )
  ),
  Text("your text")
]
);

Upvotes: 1

Related Questions