github_issues 2.0.1 copy "github_issues: ^2.0.1" to clipboard
github_issues: ^2.0.1 copied to clipboard

Flutter package to create Github issues. Good for collecting user feedback.

Github Issues #

Pub Version

Use Github issues to collect user feedback.

Screenshots

Features #

  • Create Github issues with title, comment and labels
  • Easy internationalization with GithubIssuesLocalizations
  • Supports two authentication methods

Getting started #

  1. Create a repository to store the user feedback (or use an existing one).
  2. Get a token with read and write access on issues for your repository
    Option 1: Generate a personal access token
    Option 2: Create a Github App -> Install your own Github App -> Generate a private key for your Github App.

Usage #

Full example

Fill input fields in advance:

showDialog(
  context: context,
  builder: (context) {
    return GithubIssueDialog(
      github: Github(Authentication.token('PERSONAL_ACCESS_TOKEN'));,
      owner: 'OWNER',
      repo: 'REPO',
      initialValue: const IssueRequest(title: "Hello World!"),
    );
  },
);

Pass your custom localizations:

class CustomLocalization extends GithubIssuesLocalizationsEn {
  @override
  String get dialogTitle => 'Thanks for your feedback!';
}

showDialog(
  context: context,
  builder: (context) {
    return GithubIssueDialog(
      github: Github(Authentication.token('PERSONAL_ACCESS_TOKEN'));,
      owner: 'OWNER',
      repo: 'REPO',
      localizations: CustomLocalization(),
    );
  },
);

Show only comment input:

showDialog(
  context: context,
  builder: (context) {
    return GithubIssueDialog(
      github: Github(Authentication.token('PERSONAL_ACCESS_TOKEN'));,
      owner: 'OWNER',
      repo: 'REPO',
      showTitle: false,
      labels: null,
      initialValue: const IssueRequest(title: "Hidden Title"), // title is required
    );
  },
);
3
likes
130
pub points
51%
popularity

Publisher

unverified uploader

Flutter package to create Github issues. Good for collecting user feedback.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dart_jsonwebtoken, flutter, flutter_localizations, http, intl, json_annotation

More

Packages that depend on github_issues