Skip to content

Commit e7f43e9

Browse files
authored
Export classes needed to setup authentication headers
The README states that, in order to inject authentication headers, we need to import these files: ```dart 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](https://dart-lang.github.io/linter/lints/implementation_imports.html). This can be fixed by exporting those 2 files in the `flutter_graphql.dart`, as proposed here.
1 parent 7ca51fd commit e7f43e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/flutter_graphql.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export 'package:flutter_graphql/src/core/graphql_error.dart';
99

1010
export 'package:flutter_graphql/src/link/link.dart';
1111
export 'package:flutter_graphql/src/link/http/link_http.dart';
12+
export 'package:flutter_graphql/src/link/operation.dart';
13+
export 'package:flutter_graphql/src/link/fetch_result.dart';
1214

1315
export 'package:flutter_graphql/src/cache/in_memory.dart';
1416
export 'package:flutter_graphql/src/cache/normalized_in_memory.dart';

0 commit comments

Comments
 (0)