score:-1

your package versions not working together, giving error because of this. be sure of your dependencies are last version.

https://pub.dev/

score:1

change version of your intl package to

intl ^0.16.1

in your pubspec.yaml file from

intl: 0.17.0-nullsafety.2

score:2

this happens because date_time_picker depends on intl ^0.16.1

1.add this to your package's pubspec.yaml file:

dependency_overrides:
 intl: ^0.16.1` 

edit:

or

try adding this command in pubspec.yaml file:

dependency_overrides:
 intl: any

2.run with flutter:

$ flutter pub get

3.import it now in your dart code, you can use:

import 'package:intl/intl.dart';

Related Query

More Query from same tag