Search code examples
flutter-plugin

Adding images to Readme of plugin in pub.dev


I have a plugin called UPI India in pub.dev whose readme contains two images. Both images are visible in Readme of Github but not in the Readme of pub.dev

Images in Pub

Images in Pub

Images in Github
enter image description here

I am using absolute path in Readme.

<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>

Does anyone know why this is happening?


Solution

  • Problem solved!
    I used the cdn link instead of repository link.

    <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">
    

    Hope it helps someone in future.