github_contributions 0.2.0

Dart native js
Flutter Android iOS web

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

github_contributions #

build pub

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

Usage #

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);
}

License #

MIT

0
likes
100
pub points
8%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

pd4d10@gmail.com

License

MIT (LICENSE)

Dependencies

html, http

More

Packages that depend on github_contributions