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: 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: