snowballdigital / flutter-graphql

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package. Built after react apollo
MIT License
47 stars 7 forks source link

Export classes needed to setup authentication headers #1

Closed ianko closed 5 years ago

ianko commented 5 years ago

Fixes / Enhancements

The README states that, in order to inject authentication headers, we need to import these files:

import 'package:flutter_graphql/flutter_graphql.dart';
import 'package:flutter_graphql/src/link/operation.dart';
import 'package:flutter_graphql/src/link/fetch_result.dart';

Importing files that are inside the src folder of a lib is discouraged.

This can be fixed by exporting those 2 files in the flutter_graphql.dart, as proposed here.

juicycleff commented 5 years ago

Awesome was on my todo. Awesome