petitparser / dart-petitparser

Dynamic parser combinators in Dart.
https://pub.dartlang.org/packages/petitparser
MIT License
457 stars 48 forks source link

Lower the SDK constraint for Flutter beta compatibility #97

Closed jpnurmi closed 3 years ago

jpnurmi commented 3 years ago

Trying to use petitparser with Flutter beta results to:

Resolving dependencies...
The current Dart SDK version is 2.12.0-259.12.beta.

Because petitparser requires SDK version >=2.12.0-259.14.beta <3.0.0, version solving failed.

Because the latest Flutter beta has Dart SDK 2.12.0-259.12.beta:

Flutter 1.26.0-17.6.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision a29104a69b (3 days ago) • 2021-02-16 09:26:56 -0800
Engine • revision 21fa8bb99e
Tools • Dart 2.12.0 (build 2.12.0-259.12.beta)
renggli commented 3 years ago

Sorry about that, I followed step by step https://dart.dev/null-safety/migration-guide and didn't think that Flutter would have a lower dart version. I will publish a new version shortly.

jpnurmi commented 3 years ago

Fantastic, thank you! :+1:

renggli commented 3 years ago

Published as 4.0.1: https://pub.dev/packages/petitparser/versions/4.0.1