Closed chetstriker closed 6 years ago
i'm also having problems, please update the constraints thanks
Following this suggestion too. Hope this guys pay attention to it.
does #31 fixes it?
Upper constraints on the SDK version
Once your package passes Dart 2 analysis, update the upper constraint to declare that the package is compatible with Dart 2:
environment:
# Works in Dart 2 only.
sdk: '>=2.0.0 <3.0.0'
Packages must have an upper constraint of <3.0.0 to work in Dart 2 stable and subsequent Dart 2 releases. Dart 2 dev builds before the stable release have lax upper constraint checking and can use packages that have no SDK constraints or an upper constraint of <2.0.0.
Just released 0.2.8 on pub with the fix from @naft-a. Thanks everyone!
The pubspec line in question, does this need to be restrictive? environment: sdk: ">=1.19.0 <2.0.0"