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 patchesContributors = []; List integrationsContributors = []; List patcherContributors = []; List cliContributors = []; List managerContributors = []; Future> 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 []; } }