https://github.com/kranfix/flutter_graphql_swapi
A basic Flutter using SWAPI (Star Wars API in GraphQL)
https://github.com/kranfix/flutter_graphql_swapi
Last synced: about 1 year ago
JSON representation
A basic Flutter using SWAPI (Star Wars API in GraphQL)
- Host: GitHub
- URL: https://github.com/kranfix/flutter_graphql_swapi
- Owner: kranfix
- Created: 2021-01-15T16:53:23.000Z (over 5 years ago)
- Default Branch: dev
- Last Pushed: 2021-01-17T17:54:57.000Z (over 5 years ago)
- Last Synced: 2025-02-16T20:46:25.482Z (over 1 year ago)
- Language: Dart
- Size: 19.3 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flutter_graphql_swapi
A Star Wars API based on [this figma design](https://www.figma.com/file/Ceoqa8DbrtyKoOBDR77ktm/Ravn-Code-Challenge?node-id=8%3A0) and [netifly swapi](https://swapi-graphql.netlify.app/.netlify/functions/index).

## Getting Started
The project does not contains the platform folders.
Thus there is necessary to create then only once:
```
flutter create .
```
Install all dependencies:
```
flutter pub get
```
And use the code generator for data models:
```
flutter pub run build_runner build
```
Do not forget to allow network permissions:
- [Android](https://stackoverflow.com/questions/55603979/why-flutter-application-cant-connect-to-internet-when-install-app-release-apk)
- [MacOS](https://stackoverflow.com/questions/57841871/flutter-http-get-fails-on-macos-build-target-connection-failed)