github_trending 0.1.2 copy "github_trending: ^0.1.2" to clipboard
github_trending: ^0.1.2 copied to clipboard

outdated

A library to get GitHub trending repositories, with languages and period options.

github_trending #

build pub

A library to get GitHub trending repositories for Dart and Flutter developers.

Installation #

Add github_trending as a dependency in your pubspec.yaml file

Usage #

import 'package:github_trending/github_trending.dart';

main() async {
  // get trending repositories
  var repos = await getTrendingRepositories();
  print(repos[0].owner);

  // specify time period
  var weeklyRepos =
      await getTrendingRepositories(since: TrendingRepositorySince.weekly);
  print(weeklyRepos[0].name);

  // specify language
  var dartRepos = await getTrendingRepositories(language: 'dart');
  print(dartRepos[0].primaryLanguage.name); // Dart
  print(dartRepos[0].primaryLanguage.color); // #00B4AB
}

License #

MIT

2
likes
0
pub points
9%
popularity

Publisher

unverified uploader

A library to get GitHub trending repositories, with languages and period options.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

html, http

More

Packages that depend on github_trending