Open eansharma opened 3 months ago
Assuming 'hrms' is your app, make sure you have:
intl: 0.19.0
in your pubspec.yaml
underdependencies.
I always find that error message moderately confusing, but it seems like 'hrms' has a reference to intl: ^0.17.0
flutter pub add flutter_styled_toast Note: intl is pinned to version 0.19.0 by flutter_localizations from the flutter SDK. See https://dart.dev/go/sdk-version-pinning for details.
The current Dart SDK version is 3.5.1.
Because flutter_styled_toast <2.0.0 doesn't support null safety and flutter_styled_toast >=2.0.0 depends on flutter_localizations from sdk, every version of flutter_styled_toast requires flutter_localizations from sdk.
And because every version of flutter_localizations from sdk depends on intl 0.19.0, every version of flutter_styled_toast requires intl 0.19.0. So, because hrms depends on both intl ^0.17.0 and flutter_styled_toast any, version solving failed.
The lower bound of "sdk: '>=2.1.0 <3.0.0'" must be 2.12.0 or higher to enable null safety. For details, see https://dart.dev/null-safety