From e84f302596f5e44127f1ca4a1d30a1b65c21f451 Mon Sep 17 00:00:00 2001 From: Yang Fang <31492969+yangsfang@users.noreply.github.com> Date: Tue, 29 Aug 2023 12:08:52 -0700 Subject: [PATCH] Correctly document supported SDK versions to Dart 3 The latest version of this package currently requires a Flutter version that also supports Dart 3 (e.g. Flutter 3.10+). Running pub get with lower versions of Flutter fails with package resolution conflict error that is not easy to understand. This change correctly documents the necessary SDK to successfully resolve this package, and fails with a meaningful error if it doesn't. --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 3163b86..62cc5a1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -19,7 +19,7 @@ dependencies: yaml: ^3.1.2 environment: - sdk: ">=2.17.0 <4.0.0" + sdk: ">=3.0.0 <4.0.0" dev_dependencies: build_runner: ^2.3.3