Search code examples
androidflutterdartmobile

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

Solution

  • 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