报红 import 'package:http/http.dart' as http; import 'package:date_format/date_format.dart';

The current Dart SDK version is 3.6.1.

Because xxx depends on date_format ^1.0.1 which doesn't support null safety, version solving failed.

The lower bound of "sdk: '>=1.20.1 <2.0.0 or >=2.0.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
For details, see https://dart.dev/null-safety


You can try the following suggestion to make the pubspec resolve:
* Try updating the following constraints: dart pub add date_format:^2.0.9 http:^1.4.0
posted @ 2025-05-16 18:03  sikewang  阅读(23)  评论(0)    收藏  举报