showAndUploadToGitLab method
void
showAndUploadToGitLab({})
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:
- read_api
- write_repository See https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html#limiting-scopes-of-a-project-access-token
Implementation
void showAndUploadToGitLab({
required String projectId,
required String apiToken,
String? gitlabUrl,
http.Client? client,
}) {
show(uploadToGitLab(
projectId: projectId,
apiToken: apiToken,
gitlabUrl: gitlabUrl,
client: client,
));
}