【问题标题】:How to define height and width to an image inside Flutter Markdown?如何在 Flutter Markdown 中定义图像的高度和宽度?
【发布时间】:2019-08-24 11:05:26
【问题描述】:

我想在 Flutter Markdown String 中使用自定义图像的高度和宽度。 我该怎么做?

    String markdownString = """
  You can include images:

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

在我的例子中,它显示了图像的实际大小,但我想给它自定义高度和重量。

【问题讨论】:

标签: flutter markdown


【解决方案1】:

你可以用#50x50表示#width x height

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

【讨论】:

    猜你喜欢
    • 2017-11-23
    • 1970-01-01
    • 2021-09-11
    • 2017-07-12
    • 2012-10-27
    • 1970-01-01
    • 2018-05-26
    • 2011-08-21
    • 1970-01-01
    相关资源
    最近更新 更多