Skip to content

twinsunllc/critic_flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

critic_flutter

This plugin allows Flutter apps to interact with the Inventiv Critic system for bug tracking and reporting. You will need to have a Critic account to properly utilize this. Please visit the Critic website for more information.

How to use

Step 1: Initialize the Critic library using your api key:

String key = 'your api key';
Critic().initialize(key);

Step 2: Create a new Bug Report using the .create const:

BugReport report = BugReport.create(
    description: 'description text',
    stepsToReproduce: 'steps to reproduce text',
);

Step 3: Attach a file, if necessary

File file = File('path to file');
report.attachments = <Attachment>[];
report.attachments!.add(Attachment(name: 'test file', path: file.path));

Step 4: Use the Critic() singleton to submit your BugReport (example using Futures):

Critic().submitReport(report).then(
    (BugReport successfulReport) {
      //success!
    }).catchError((Object error) {
      //failure
    });

Step 5: Review bugs submitted for your organization using Critic's web portal

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •