github_contributions 0.1.0 github_contributions: ^0.1.0 copied to clipboard
A library to get GitHub users' contributions information, for Dart and Flutter developers
github_contributions #
A library to get GitHub users' contributions information, for Dart and Flutter developers
Usage #
main() async {
var login = 'pd4d10'; // replace this with GitHub account you want
// get svg string
String svg = await getContributionsSvg(login, withoutText: true);
print(svg);
// get color and count of this year's contribution
var contributions = await getContributions(login);
print(contributions[0].color);
}
License #
MIT