badges.bar

Badges for Dart and Flutter packages on pub.dev

MIT License

Stars
30
Committers
5

Badges for Dart and Flutter packages

On Docker Hub

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

Using the API

Render an SVG badge with the Dart logo

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

The textSvg above would render the svg like in 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.getMetrics(package);
print('Stats for $package:');
print('Likes: ${score.likes}');
print('Popularity: ${score.popularity}');
print('Pub Points: ${score.points}');

The service badges.bar was decomissioned

## Using badges.bar service

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](https://badges.bar/sentry/likes)](https://pub.dev/packages/sentry/score)

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

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

Package Rankings
Top 23.43% on Pub.dev
Badges
Extracted from project README
build likes likes popularity pub points