From 4e146b8d2f0c2fbe42da05ee91690c573cc9cefc Mon Sep 17 00:00:00 2001 From: Brett Morgan Date: Thu, 10 Feb 2022 17:22:36 +1000 Subject: [PATCH 1/2] 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: From d52239605bb7cd545d87c5d99054e8e99a3b3d64 Mon Sep 17 00:00:00 2001 From: Brett Morgan Date: Thu, 10 Feb 2022 17:26:12 +1000 Subject: [PATCH 2/2] 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: