gh_trend library

GitHub trending (developers & repositories) scraper for dart and flutter.

Classes

GithubDeveloperItem
The model class for a trending developer.
GithubRepoItem
The model class for trending repo item.
GithubUserItem
The contributor or owner for a trending repository.

Enums

GhTrendDateRange
Enum for github trending date range.

Constants

ghProgrammingLanguages → const Map<String, String>
List of possible programming languages from GitHub.
ghSpokenLanguages → const Map<String, String>
List of spoken languages from GitHub.

Functions

ghDateRangeLabel(GhTrendDateRange from) String
Transform the date range enum into proper label. Can be used for UI.
ghTrendingDevelopers({String programmingLanguage = '', GhTrendDateRange dateRange = GhTrendDateRange.today, Map<String, String> headers = const {}}) Future<List<GithubDeveloperItem>>
Load trending developers from GitHub.
ghTrendingRepositories({String spokenLanguageCode = '', String programmingLanguage = '', GhTrendDateRange dateRange = GhTrendDateRange.today, Map<String, String> headers = const {}}) Future<List<GithubRepoItem>>
Load trending repositories from GitHub.