ianldgs / material_search

https://pub.dartlang.org/packages/material_search
MIT License
75 stars 39 forks source link

The pubspec is limiting dart to 2.0 which is making my projects 2.1.0 fail #30

Closed chetstriker closed 6 years ago

chetstriker commented 6 years ago

The pubspec line in question, does this need to be restrictive? environment: sdk: ">=1.19.0 <2.0.0"

modulovalue commented 6 years ago

i'm also having problems, please update the constraints thanks

wesleyfantinel commented 6 years ago

Following this suggestion too. Hope this guys pay attention to it.

ianldgs commented 6 years ago

does #31 fixes it?

modulovalue commented 6 years ago
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.

source

ianldgs commented 6 years ago

Just released 0.2.8 on pub with the fix from @naft-a. Thanks everyone!