score:-1
your package versions not working together, giving error because of this. be sure of your dependencies are last version.
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';
Source: stackoverflow.com
Related Query
- Flutter pub get failed with intl
- Flutter 2.0 upgrade, pub get failed with nonsense dependency behavior
- Flutter pub get failed with (1; The system cannot find path specified)
- Flutter :How to solve flutter_svg pub get failed error?
- Failed to get request token. Authorization completed with an error. Twitter API with flutter and firebase
- Flutter Riverpod: pub get failed
- Why do I get "Manifest merger failed with multiple errors" error when running Flutter Android app?
- 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
- flutter pub get failed during flutter create
- Issue with flutter pub get
- How to solve Flutter Pub get Failed error
- Flutter pub get version solving failed
- Flutter: Running flutter pub get in github actions with private dependencies
- Flutter pub get failed when I add new package to dependencies
- Flutter pub get failed
- Flutter pub get fail with version mismatch. (qr_flutter and printing)
- Trying to do a flutter pub get and got Process finished with exit code 66
- pub get failed error with image_editor_pro
- Terminal show error "version solving failed. pub get failed in" in flutter
- Flutter: flutter pub get and flutter packages get failed
- Flutter pub get failed many times
- flutter pub get failed (-10737418819) - self-signed SSL certificates blocked?
- InAppWebView Flutter : Failed to get fallback IMM with expected displayId
- Command PhaseScriptExecution failed with a nonzero exit code while trying to add Flutter to iOS app
- flutter pub run build_runner build failed
- SocketException: Connection failed (OS Error: Operation not permitted, errno = 1) with flutter app on macOS
- How to create a simple google maps address search with autocomplete in flutter and get latitude and longitude?
- flutter packages get failed depends on flutter_test any from sdk which requires SDK version <2.0.0, version solving failed
- Flutter - How to get Container with children to take up entire screen
- flutter run failed with error "Could not resolve the package 'characters' in 'package:characters/characters.dart'."
More Query from same tag
- Cannot run with sound null safety, because the following dependencies don't support null safety
- Error ternary operator not working in flutter
- Persist Provider data across multiple pages not working
- How to combine streams into one stream in flutter properly?
- How is floating action button placed with respect to screen height and width in flutter
- Resizing Text by Theme in Flutter
- Flutter: How to delete folder in friebase storage
- Hide top status bar after bringing it back
- alert dialog is not working in my flutter torch project
- is it Is possible to add multiple values within one parameter of a class?
- How to get the dimensions of a flutter image?
- How to use book_outlined icon in flutter?
- The argument type SearchBar can't be assigned to the parameter type Widget in flutter
- How to do forEach in flutter
- How set root view dynamically in flutter?
- Flutter how can you create a stacked tab bar?
- Flutter: How can I ensure proper initialization of a variable from asynchronous function?
- How to test the preferred screen orientation
- Flutter add a black outline to top of BottomNavigationBar
- Flutter: Shift in Android launch theme and normal theme image
- Is it possible to build a 24/7 running on background APP?
- Dropdown Menu not reflecting in the UI
- Failed to find Platform SDK with path: platforms;android-R
- Flutter bottom navigation margin not showing when adding FAB
- Text recognition failed for different languages other than english [firebase ml vision]
- How do I fix pub get failed (66; Could not decompress gz stream Connection closed while receiving data, path = '')
- Hot Restart (previously Full restart) in Flutter VS Code whilst debugging
- How do I remove a widget in response to user input?
- Flutter : Maxlength not working on Textfield
- how add style to variables via easy_rich_text widget