我有一个名为UPI印度 in pub.dev的插件,它的自述包含两个映像。这两幅图像都可以在Github的自述文件中看到,而在pub.dev自述文件中则没有显示。
Pub中的图像

Github中的图像

我在自述中使用绝对路径。
<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>有人知道为什么会这样吗?
发布于 2020-05-31 15:24:44
问题解决了!
我使用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">希望这对将来的人有帮助。
发布于 2021-09-30 07:30:56
有一种更简单的方法可以让你尝试这样的方法:
<table>
<tr>
<td><img src="https://github.com/mdazharuddin1011999/UPI-Plugin-Flutter/raw/master/images/success.jpg" alt="Success Status" width="200"></td>
<td><img src="https://github.com/mdazharuddin1011999/UPI-Plugin-Flutter/raw/master/images/show.gif" alt="How example looks" width="200"></td>
</tr>
</table>只需将/blob/更改为/raw/中的Github url即可。
https://stackoverflow.com/questions/62017182
复制相似问题