Dart pub.dev published plugin, broken images in README.md

Issue

I published a plugin on pub.dev and also on GitHub, I have 2 screenshots displaying in README.md from Github link. These are fine on Github but are broken on pub.dev. I tried all approaches but still the same.

Screenshot# 01             |  Screenshot# 02
:-------------------------:|:-------------------------:
<img src="https://github.com/shahzadakram67/flutter_tex/blob/master/screenshots/Screenshot_1.png"/> | <img src="https://github.com/shahzadakram67/flutter_tex/blob/master/screenshots/Screenshot_2.png"/> 

Github: https://github.com/shah-xad/flutter_tex

pub.dev: https://pub.dev/packages/flutter_tex

Solution

The actual URL, to be used in pub.dev, should be:

 https://raw.githubusercontent.com/shah-xad/flutter_tex/master/screenshots/Screenshot_1.png
 NOT:
 https://github.com/shahzadakram67/flutter_tex/blob/master/screenshots/Screenshot_1.png

Answered By – VonC

Answer Checked By – Mary Flores (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *