feedback_to_issue 0.0.7 copy "feedback_to_issue: ^0.0.7" to clipboard
feedback_to_issue: ^0.0.7 copied to clipboard

A UI to direct users' feedback to github issue. The feedback dialogue will pass feedback to github issue with corresponding label.

example/main.dart

import 'package:flutter/material.dart';
import 'package:feedback_to_issue/feedback_to_issue.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        // we need scaffoldkey to share scaffold state with other widget.
        key: _scaffoldKey,
        body: Center(
          child: OutlineButton(
            child: new Text('Feedback'),
            onPressed: () {
              //assignee is default to your_github_username
              var feedbackDialogue = new FeedbackDialogue(
                  context,
                  _scaffoldKey,
                  'your_github_api_token',
                  'your_github_username',
                  'your_github_repository_name',
                  assignee: 'assignee_user_name');
              feedbackDialogue.prompt();
            },
          ),
        ));
  }
}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A UI to direct users' feedback to github issue. The feedback dialogue will pass feedback to github issue with corresponding label.

Repository (GitHub)
View/report issues

License

LGPL-3.0 (LICENSE)

Dependencies

flutter, github

More

Packages that depend on feedback_to_issue