Md Abdul Halim Rafi
Md Abdul Halim Rafi

Reputation: 1980

How to define height and width to an image inside Flutter Markdown?

I want to use custom height and width of image inside Flutter Markdown String. How can I do that?

    String markdownString = """
  You can include images:

![Flutter logo](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSobAPMeqgsRtHrX8vclVHPggkhqcSt0q1ixhyokNq3Wa16TGF6Mp34Cjo)
""";

In my case it is showing the actual size of the image, But I want to give it custom height and weight.

Upvotes: 4

Views: 1431

Answers (1)

Yousif khalid
Yousif khalid

Reputation: 6465

you can use #50x50 mean #width x height

![Flutter logo](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSobAPMeqgsRtHrX8vclVHPggkhqcSt0q1ixhyokNq3Wa16TGF6Mp34Cjo#50x50)

Upvotes: 6

Related Questions