showAndUploadToGitLab method

void showAndUploadToGitLab(
  1. {required String projectId,
  2. required String apiToken,
  3. String? gitlabUrl,
  4. Client? client}
)

Example usage:

import 'package:feedback_gitlab/feedback_gitlab.dart';

RaisedButton(
  child: Text('Click me'),
  onPressed: (){
    BetterFeedback.of(context).showAndUploadToGitLab
      projectId: 'gitlab-project-id',
      apiToken: 'gitlab-api-token',
      gitlabUrl: 'gitlab.org', // optional, defaults to 'gitlab.com'
    );
  }
)

The API token needs access to:

Implementation

void showAndUploadToGitLab({
  required String projectId,
  required String apiToken,
  String? gitlabUrl,
  http.Client? client,
}) {
  show(uploadToGitLab(
    projectId: projectId,
    apiToken: apiToken,
    gitlabUrl: gitlabUrl,
    client: client,
  ));
}