badges_bar 0.1.6 copy "badges_bar: ^0.1.6" to clipboard
badges_bar: ^0.1.6 copied to clipboard

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

example/main.dart

import 'dart:async';
import 'package:badges_bar/badges_bar.dart';

Future<void> main() async {
  // Render a SVG badge with the Dart logo:
  print(svg('Title', 'Value'));

  // Get the pub.dev score for a package:
  final client = PubClient();
  final score = await client.getScore('sentry');
  print('Stats for sentry:');
  print('Likes: ${score.likes}');
  print('Popularity: ${score.popularity}');
  print('Pub Points: ${score.points}');
}
13
likes
40
pub points
0%
popularity

Publisher

verified publisherbrunogarcia.com

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

http, sentry

More

Packages that depend on badges_bar