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

discontinued

A library to get GitHub contributions for Dart and Flutter developers.

example/flutter_github_contributions_example.dart

import 'package:flutter_github_contributions/flutter_github_contributions.dart';

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

  // Get the contribution of a certain year
  // If it is the past year, from: yyyy-12-01, to: yyyy-12-31
  // if not, from: The first day of the current month, to: today
  var contributions = await getContributions(login, from: '2019-08-01', to: '2019-08-04');
  print(contributions[0].color);

  // get svg string
  String svg = await getContributionsSvg(login);
  print(svg);

  // get color and count of this year's contribution
  var contributions1 = await getContributions(login);
  print(contributions1[0].color);
}
0
likes
60
pub points
0%
popularity

Publisher

unverified uploader

A library to get GitHub contributions for Dart and Flutter developers.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, html, http

More

Packages that depend on flutter_github_contributions