Wael Dghais
Wael Dghais

Reputation: 33

when i run flutter pub get i get this error "date_picker_timeline" depends on intl ^0.16.0 and "flutter_localizations" depends on intl 0.17.0

Because date_picker_timeline >=1.1.0 depends on intl ^0.16.0 and every version of flutter_localizations from sdk depends on intl 0.17.0, date_picker_timeline >=1.1.0 is incompatible with flutter_localizations from sdk. And because easy_localization >=2.1.0+1 depends on flutter_localizations any from sdk, date_picker_timeline >=1.1.0 is incompatible with easy_localization >=2.1.0+1. So, because TimyTimeMain depends on both date_picker_timeline ^1.1.3 and easy_localization ^2.3.3, version solving failed.

intl: ">=0.16.0 <=0.17.0-nullsafety.2"
easy_localization: ^2.3.3
date_picker_timeline: ^1.1.3

Upvotes: 2

Views: 2890

Answers (2)

Akın Ahmedov
Akın Ahmedov

Reputation: 11

I had the same problem and I solved it by running the code below

flutter pub upgrade --major-versions

Upvotes: 1

matr0s
matr0s

Reputation: 107

the Date Picker has a new version -

dependencies:
  date_picker_timeline: ^1.2.1

https://pub.dev/packages/date_picker_timeline/install

Please update this data in your pubspec.yaml

Also, you can check the version for the Intl package and others if necessary https://pub.dev/packages/intl/install

Upvotes: 1

Related Questions