Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
android
example
ios
lib
.gitignore
.metadata
CHANGELOG.md
LICENSE
README.md
inventiv_critic_flutter.iml
pubspec.yaml

README.md

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

You can’t perform that action at this time.