Using the GitHub API in Flutter. Sandbox/example project.
A minimal example showcasing how https://pub.dev/packages/github and https://pub.dev/packages/url_launcher can be used to provide a full GitHub OAuth2 login & repo listing flow.
- iOS
- macOS
- Windows
- Android
- Project has to have "internet permissions" to be able to communicate with the GitHub API:
- Don't forget to set the right
scopes
in theOAuth2Flow
call, based on the APIs you want to access: https://docs.github.com/en/developers/apps/building-oauth-apps/scopes-for-oauth-apps