Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

Dart package to get GitHub trending repositories and developers

github_trending

A Dart library to get GitHub trending repositories and developers via github-trending-api.

Installation

Add github_trending as a dependency in your pubspec.yaml file

Usage

import 'package:github_trending/github_trending.dart';

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

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

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

Download GitHub trending repositories Source code on GitHub

Dart package to get GitHub trending repositories and developers
https://github.com/git-touch/github-trending
1 forks.
9 stars.
0 open issues.

Recent commits:

Exit mobile version