feat: wip contributors screen.

This commit is contained in:
Aunali321
2022-08-12 23:37:16 +05:30
parent 4d3ea65d7f
commit 739673dd8f
13 changed files with 271 additions and 7 deletions

View File

@ -0,0 +1,27 @@
import 'package:github/github.dart';
import 'package:revanced_manager/services/github_api.dart';
import 'package:stacked/stacked.dart';
class ContributorsViewModel extends BaseViewModel {
final GithubAPI githubAPI = GithubAPI();
List<Contributor> patchesContributors = [];
List<Contributor> integrationsContributors = [];
List<Contributor> patcherContributors = [];
List<Contributor> cliContributors = [];
List<Contributor> managerContributors = [];
Future<List<Contributor>> getContributors() async {
patchesContributors =
await githubAPI.getContributors('revanced', 'revanced-patches');
integrationsContributors =
await githubAPI.getContributors('revanced', 'revanced-integrations');
patcherContributors =
await githubAPI.getContributors('revanced', 'revanced-patcher');
cliContributors =
await githubAPI.getContributors('revanced', 'revanced-cli');
managerContributors =
await githubAPI.getContributors('revanced', 'revanced-manager');
return [];
}
}