0

How can I make a badge like how we ofter see it on GitHub libraries. Like this: . I can use a web view but it is not efficient as it will take time to load and it will also cache it.

Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614
Sambhav Khandelwal
  • 3,585
  • 2
  • 7
  • 38
  • i don't necessarily have any problems with your post, others might disagree, but this seems like an extremely niche requirement, can't say i've ever needed something like this and i probably wouldn't recommend on making use of third party libraries just to achieve something like this – a_local_nobody Mar 20 '22 at 14:12
  • Self-answered questions are encouraged and self-promotion is not automatically bad, but please make sure that both the question and the answer meet the normal quality bar. Specifically your answer looks like a direct copy of (parts of) your projects readme, which is not a proper answer. Consider editing it down to a useful answer. Also, make sure that the formatting looks like you intended it. Right now it's a mess (with extra `
    `, broken images/videos and broken lists)
    – Joachim Sauer Mar 20 '22 at 15:17
  • the the links have been corrected – Sambhav Khandelwal Mar 20 '22 at 15:53
  • @JoachimSauer I have edited my answer. Please let me know if it is ok – Sambhav Khandelwal Mar 20 '22 at 15:57

1 Answers1

1

For this, I have made a library Badge Generator. It is easy to implement. The steps are given below. I will be editing the answer as I post updates.

Sample

This is the sample video

Tutorial

This is the youtube tutorial

Note: This is not updated to the features supported in the latest version.

Features

  1. You can set a custom label(title)
  2. You can set a custom message
  3. You can set a custom image using base64 or the two links provided in the README.md.
  4. You can set a custom logo color
  5. You can set a custom label background color
  6. You can set a custom message background color
  7. And a lot lot more.
Sambhav Khandelwal
  • 3,585
  • 2
  • 7
  • 38