gql_client 0.1.3+2

Repo Moved #

This repo has been renamed to Ferry. Please update your dependencies.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[0.1.3+2] - 2020-02-22

Changed #

  • add note about repo move

[0.1.3] - 2020-02-21

Changed #

  • remove 'GQL' prefix
  • use latest version of gql_build
  • update example

[0.1.2] - 2020-02-14

Changed #

  • update dependencies
  • fix erroneous import

[0.1.1] - 2020-02-14

Changed #

  • export CacheProxy

[0.1.0] - 2020-02-12

Changed #

  • BREAKING convert options to use built_value

[0.0.3] - 2020-02-08

Changed #

  • update example

[0.0.2] - 2020-02-08

Removed #

  • Remove custom network error
  • Remove unnecessary readme code

[0.0.1] - 2020-02-05

Added #

  • Initial release

example/README.md

Example GQL Flutter Application #

This example shows how you can use the gql_build library in your flutter applications.

Setup #

Get dependencies

flutter pub get packages

Build graphql documents

flutter pub run build_runner build

Run #

Run the application

flutter run

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  gql_client: ^0.1.3+2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:gql_client/gql_client.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
50
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
70
Learn more about scoring.

We analyzed this package on Feb 23, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Health suggestions

Fix lib/src/req_builder/req_builder.dart. (-1.49 points)

Analysis of lib/src/req_builder/req_builder.dart reported 3 hints:

line 5 col 8: Don't import implementation files from another package.

line 6 col 8: Don't import implementation files from another package.

line 7 col 8: Don't import implementation files from another package.

Fix lib/src/client/client.dart. (-1 points)

Analysis of lib/src/client/client.dart reported 2 hints:

line 25 col 9: Close instances of dart.core.Sink.

line 81 col 28: This function has a return type of 'Stream<QueryResponse

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
build ^1.2.2 1.2.2
built_collection ^4.3.2 4.3.2
built_value ^7.0.9 7.0.9
code_builder ^3.2.1 3.2.1
flutter 0.0.0
gql ^0.12.0 0.12.2
gql_build ^0.0.5 0.0.8
gql_code_builder ^0.0.5 0.0.8
gql_exec ^0.2.0 0.2.2
gql_link ^0.2.2 0.2.3
hive ^1.3.0 1.4.1
meta ^1.1.8 1.1.8
normalize ^0.1.1 0.1.4
rxdart ^0.23.1 0.23.1
uuid ^2.0.4 2.0.4
Transitive dependencies
_fe_analyzer_shared 1.0.3
analyzer 0.39.4
args 1.5.2
async 2.4.0
charcode 1.1.3
collection 1.14.11 1.14.12
convert 2.1.1
crypto 2.1.4
csslib 0.16.1
dart_style 1.3.3
fixnum 0.10.11
glob 1.2.0
html 0.14.0+3
js 0.6.1+1
logging 0.11.4
matcher 0.12.6
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.1.0
path 1.6.4
pedantic 1.9.0
pub_semver 1.4.3
quiver 2.1.2+1
sky_engine 0.0.99
source_span 1.6.0
stack_trace 1.9.3
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
watcher 0.9.7+13
yaml 2.2.0
Dev dependencies
build_runner ^1.6.7
build_test ^0.10.12+1
built_value_generator ^7.0.9
mockito ^4.1.1
test ^1.9.4