flutter_github_api 0.1.8 copy "flutter_github_api: ^0.1.8" to clipboard
flutter_github_api: ^0.1.8 copied to clipboard

outdated

A Github Api Flutter package, dependendy on github library. it can help us to easy get information from github.

example/example.dart

import 'package:flutter_github_api/flutter_github_api.dart';

class Example {
  static final github = createGitHubClient();
  static final slug = RepositorySlug('houko', 'flutter_github_api');

  static Stream<Issue> listIssuesByRepository() {
    Stream<Issue> issueStream = github.issues.listByRepo(slug);
    issueStream.listen((data) {
      print(data);
      // do something
    });
    return issueStream;
  }

  static Stream<Repository> listRepository() {
    Stream<Repository> repositoryStream =
        github.repositories.listRepositories(type: 'houko');

    repositoryStream.listen((data) {
      print(data);
      // do something
    });

    return repositoryStream;
  }
}
0
likes
0
pub points
0%
popularity

Publisher

verified publisherflutter-jp.com

A Github Api Flutter package, dependendy on github library. it can help us to easy get information from github.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, github

More

Packages that depend on flutter_github_api