badges_bar 0.1.3

Dart native js
Flutter Android iOS web

SVG badge generator for packages on pub.dev. Likes, pub points and popularity.

Badges for Dart and Flutter packages #

build coverage likes popularity pub points

On Docker Hub #

https://hub.docker.com/r/brunogarcia/badges.bar/tags

Using badges.bar #

You can create a badge for your package by using https://badges.bar/{package}/{score_type}. Score types can be either:

  • likes
  • pub points
  • popularity

For example for the package sentry:

likes: [![pub points](https://badges.bar/sentry/pub%20points)](https://pub.dev/packages/sentry/score)

popularity: [![pub points](https://badges.bar/sentry/pub%20points)](https://pub.dev/packages/sentry/score)

pub points: [![pub points](https://badges.bar/sentry/pub%20points)](https://pub.dev/packages/sentry/score)

Using the API #

final textSvg = svg('Title', 'Value');

The textSvg above would render the svg like in likes but instead with Title on the left hand and Value on the right (green background) side.

Fetch the pub.dev scores for a package #

const package = 'badge_bar';
final client = PubClient();
final score = await client.getScore(package);
print('Stats for $package:');
print('Likes: ${score.likes}');
print('Popularity: ${score.popularity}');
print('Pub Points: ${score.points}');
8
likes
110
pub points
23%
popularity

Publisher

brunogarcia.com

SVG badge generator for packages on pub.dev. Likes, pub points and popularity.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http, sentry

More

Packages that depend on badges_bar