flutter_github_trending 0.2.6

Flutter Android iOS web

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

Github Trending #

GitHub release Pub

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

Installation #

Add flutter_github_trending as a dependency in your pubspec.yaml file

dependencies:
  flutter_github_trending: '<latest version>'

Usage #

import 'package:flutter_github_trending/flutter_github_trending.dart';

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

  // specify time period
  var weeklyRepos =
      await getTrendingRepositories(since: TrendingSince.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
  
  // get trending developers
  var devs = await getTrendingDevelopers();
  print(devs[0].avatar);

  // specify time period
  var weeklyDevs =
      await getTrendingDevelopers(since: TrendingSince.weekly);
  print(weeklyDevs[0].avatar);
  print(weeklyDevs[0].username);
  print(weeklyDevs[0].popularRepository?.url);
  print(weeklyDevs[0].popularRepository?.name);

}

License #

MIT

0
likes
90
pub points
0%
popularity

Publisher

gitterapp.com

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, html, http

More

Packages that depend on flutter_github_trending