Flutter demo-project with backend.
Technologies: BLoC v.6 (Cubit), code generation, GraphQL, Hasura, Firebase
$ flutter packages pub run build_runner build --delete-conflicting-outputs
-
Add Apollo extention in VSCode.
-
Add config file apollo.config.js with content:
module.exports = { client: { includes: ['./lib/**/*.dart'], service: { name: 'app_name', url: 'graphgl_endpoint_url', // optional headers headers: { 'x-hasura-admin-secret': 'secret_phrase', 'x-hasura-role': 'admin', }, // optional disable SSL validation check skipSSLValidation: true, }, }, }
-
Download schema.json:
$ apollo schema:download
$ flutter build apk --target-platform android-arm64
$ flutter clean $ flutter build appbundle