major_graphql_flutter 0.0.2

  • Readme
  • Changelog
  • Installing
  • 56

major_graphql #

major_graphql uses the dart build system and gql to generate built_value classes, primarily for use in client side applications.

Packages #

There is also an example major_todo_app which is livecoded on youtube.

Usage #

build.yaml: #

targets:
  $default:
    builders:
      major_graphql_generator|builder:
        enabled: true
        options:
          schema: major_graphql_example|lib/graphql/schema.graphql

pubspec.yaml: #

dependencies:
  major_graphql: ^0.0.1
  # or major_graphql_flutter: ^0.0.1 for flutter

dev_dependencies:
  major_graphql_generator: ^0.0.1
  build_runner: ^1.7.4

0.0.2 #

0.0.1 #

  • Initial release

Use this package as a library

1. Depend on it

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


dependencies:
  major_graphql_flutter: ^0.0.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:major_graphql_flutter/major_graphql_flutter.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
27
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
62
Overall:
Weighted score of the above. [more]
56
Learn more about scoring.

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

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Analysis suggestions

Package does not support Flutter platform android

Because of import path [package:major_graphql_flutter/major_graphql_flutter.dart, package:major_graphql_flutter/typed_query.dart, package:major_graphql_flutter/dev_utils.dart, package:graphql_flutter/graphql_flutter.dart, package:graphql_flutter/src/caches.dart, package:path_provider/path_provider.dart, package:path_provider_linux/path_provider_linux.dart] that declares support for platforms: linux

Package does not support Flutter platform ios

Because of import path [package:major_graphql_flutter/major_graphql_flutter.dart, package:major_graphql_flutter/typed_query.dart, package:major_graphql_flutter/dev_utils.dart, package:graphql_flutter/graphql_flutter.dart, package:graphql_flutter/src/caches.dart, package:path_provider/path_provider.dart, package:path_provider_linux/path_provider_linux.dart] that declares support for platforms: linux

Package does not support Flutter platform linux

Because of import path [package:major_graphql_flutter/major_graphql_flutter.dart, package:major_graphql_flutter/typed_query.dart, package:major_graphql_flutter/dev_utils.dart, package:graphql_flutter/graphql_flutter.dart, package:graphql_flutter/src/widgets/subscription.dart, package:connectivity/connectivity.dart] that declares support for platforms: android, ios, macos, web

Package does not support Flutter platform macos

Because of import path [package:major_graphql_flutter/major_graphql_flutter.dart, package:major_graphql_flutter/typed_query.dart, package:major_graphql_flutter/dev_utils.dart, package:graphql_flutter/graphql_flutter.dart, package:graphql_flutter/src/caches.dart, package:path_provider/path_provider.dart, package:path_provider_linux/path_provider_linux.dart] that declares support for platforms: linux

Package does not support Flutter platform web

Because of import path [package:major_graphql_flutter/major_graphql_flutter.dart, package:major_graphql_flutter/typed_query.dart, package:major_graphql_flutter/dev_utils.dart, package:graphql_flutter/graphql_flutter.dart, package:graphql_flutter/src/caches.dart, package:path_provider/path_provider.dart] that declares support for platforms: android, ios, linux, macos

Package does not support Flutter platform windows

Because of import path [package:major_graphql_flutter/major_graphql_flutter.dart, package:major_graphql_flutter/typed_query.dart, package:major_graphql_flutter/dev_utils.dart, package:graphql_flutter/graphql_flutter.dart, package:graphql_flutter/src/widgets/subscription.dart, package:connectivity/connectivity.dart] that declares support for platforms: android, ios, macos, web

Package not compatible with SDK dart

because of import path [major_graphql_flutter] that is in a package requiring null.

Health suggestions

Fix lib/dev_utils.dart. (-0.50 points)

Analysis of lib/dev_utils.dart reported 1 hint:

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

Maintenance suggestions

The package description is too short. (-18 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.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and major_graphql_flutter.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
flutter 0.0.0
gql ^0.12.2 0.12.3 0.12.4-alpha+1590789520945
graphql ^3.0.1 3.0.2 4.0.0-alpha.1
graphql_flutter ^3.0.1 3.0.1 4.0.0-alpha.1
major_graphql ^0.0.2 0.0.2
Transitive dependencies
built_collection 4.3.2
built_value 7.1.0
charcode 1.1.3
collection 1.14.12 1.14.13
connectivity 0.4.9
connectivity_for_web 0.3.0
connectivity_macos 0.1.0+3
connectivity_platform_interface 1.0.6
convert 2.1.1
crypto 2.1.5
file 5.2.1
fixnum 0.10.11
flutter_web_plugins 0.0.0
http 0.12.1
http_parser 3.1.4
intl 0.16.1
js 0.6.2
matcher 0.12.8
meta 1.1.8
mime 0.9.6+3
path 1.7.0
path_provider 1.6.11
path_provider_linux 0.0.1+2
path_provider_macos 0.0.4+3
path_provider_platform_interface 1.0.2
platform 2.2.1
plugin_platform_interface 1.0.2
process 3.0.13
quiver 2.1.3
rxdart 0.23.1 0.24.1
sky_engine 0.0.99
source_span 1.7.0
stack_trace 1.9.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6 1.2.0
uuid_enhanced 3.0.2
vector_math 2.0.8
websocket 0.0.5
xdg_directories 0.1.0
Dev dependencies
flutter_test
pedantic ^1.8.0 1.9.0 1.9.1
test ^1.6.0