将图像添加到pub.dev

时间:2020-05-26 07:55:54

标签: flutter-plugin readme

我在 pub.dev 中有一个名为UPI India的插件,其自述文件包含两个图像。这两个图像在 Github 的自述文件中可见,而在pub.dev

的自述文件中不可见

发布中的图像

Images in Pub

Github中的图片
enter image description here

我在自述文件中使用绝对路径。

<table>
  <tr>
    <td><img src="https://github.com/mdazharuddin1011999/UPI-Plugin-Flutter/blob/master/images/success.jpg" alt="Success Status" width="200"></td>
    <td><img src="https://github.com/mdazharuddin1011999/UPI-Plugin-Flutter/blob/master/images/show.gif" alt="How example looks" width="200"></td>
  </tr>
</table>

有人知道为什么会这样吗?

1 个答案:

答案 0 :(得分:0)

问题解决了!
我使用了CDN链接而不是存储库链接。

<img src="https://user-images.githubusercontent.com/42082172/82893565-d3643480-9f6e-11ea-96a7-493181df6214.gif" alt="How example looks" width="300" height="540">

<img src="https://user-images.githubusercontent.com/42082172/82893023-1245ba80-9f6e-11ea-868d-a55062d34086.jpg" alt="Success Status" width="300" height="540">

希望它对以后的人有帮助。