github_contributions 0.2.0 copy "github_contributions: ^0.2.0" to clipboard
github_contributions: ^0.2.0 copied to clipboard

A library to get GitHub users' contributions information, for Dart and Flutter developers

example/github_contributions_example.dart

import 'package:github_contributions/github_contributions.dart';

main() async {
  var login = 'pd4d10'; // replace this with GitHub account you want

  // Get latest contributions
  var contributions = await getContributions(login);
  print(contributions[0].count);
  print(contributions[0].color);
  print(contributions[0].date);

  // Specify date
  var contributionsByDate = await getContributions(
    login,
    from: '2019-09-01',
    to: '2019-09-11',
  );
  print(contributionsByDate.length);
}
0
likes
40
points
41
downloads

Publisher

unverified uploader

Weekly Downloads

A library to get GitHub users' contributions information, for Dart and Flutter developers

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

html, http

More

Packages that depend on github_contributions