From e00c8e277bb033670e29ba2b54e448e356662586 Mon Sep 17 00:00:00 2001 From: Brett Morgan Date: Thu, 10 Feb 2022 17:26:12 +1000 Subject: [PATCH 1/2] graphql_flutter: In doc use `flutter pub add` --- packages/graphql_flutter/README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/graphql_flutter/README.md b/packages/graphql_flutter/README.md index 743500389..04439ac96 100644 --- a/packages/graphql_flutter/README.md +++ b/packages/graphql_flutter/README.md @@ -49,9 +49,8 @@ This guide is mostly focused on setup, widgets, and flutter-specific considerati First, depend on this package: -```yaml -dependencies: - graphql_flutter: ^ +```console +$ flutter pub add graphql_flutter ``` And then import it inside your dart code: From 0a6b3f7821c7cc924b7ed6f74849b5bf330357cd Mon Sep 17 00:00:00 2001 From: Brett Morgan Date: Thu, 10 Feb 2022 17:22:36 +1000 Subject: [PATCH 2/2] graphql: In the doc use `flutter pub add` --- packages/graphql/README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/graphql/README.md b/packages/graphql/README.md index a930b8b64..6faae5ebd 100644 --- a/packages/graphql/README.md +++ b/packages/graphql/README.md @@ -53,9 +53,8 @@ As of `v4`, it is built on foundational libraries from the [gql-dart project], i First, depend on this package: -```yaml -dependencies: - graphql: ^4.0.0-beta +```console +$ flutter pub add graphql ``` And then import it inside your dart code: