Flutter sample project for FlutterKaigi 2021. This project uses github graphql api for its endpoint and ferry for its client library.
To start this app, you need to make Personal Access Token. If you don't have any, please make it. You can refer to document by GitHub.
After you make it, please insert it into code below in client.dart. Now you can run this app and interact with github via this project.
// initialize link
final httpLink = HttpLink("https://api.github.com/graphql");
final authLink = AuthLink(getToken: () => "Bearer token"); // insert your token here
You can search repositories with words. This project uses query for this feature. You can check query statement in list_screen.query.graphql.
You can add or remove star from searched repositories. This project uses mutations for this feature. you can check add star mutation in add_star.mutation.graphql and remove star mutation in remove_star.mutation.graphql.