这是indexloc提供的服务,不要输入任何密码
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
flutter:
sdk: flutter
collection: ^1.17.2
freezed_annotation: ^2.4.1
freezed_annotation: ^3.1.0
cancellation_token: ^2.0.1
Comment on lines +16 to 17
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Align freezed and freezed_annotation to the same minor version

freezed enforces that freezed (code-gen) and freezed_annotation (runtime) share identical MAJOR and MINOR numbers.
Here you bump freezed_annotation to ^3.1.0 while the generator is ^3.2.0. This mismatch will cause build-runner to fail with
Unsupported Freezed version errors during code-generation.

Proposed fix:

-  freezed_annotation: ^3.1.0
+  freezed_annotation: ^3.2.0

(or downgrade the generator to ^3.1.0; keeping them identical is the key).

Also applies to: 25-25

🤖 Prompt for AI Agents
In pubspec.yaml around lines 16 to 17, the versions of freezed_annotation and
freezed are mismatched, causing build-runner errors. Ensure both freezed and
freezed_annotation dependencies have the same major and minor version numbers by
updating freezed_annotation to match the freezed version (e.g., both to ^3.2.0)
or downgrading freezed to ^3.1.0. This alignment will prevent the Unsupported
Freezed version error during code generation.

logging: ^1.2.0

Expand All @@ -22,7 +22,7 @@ dev_dependencies:
sdk: flutter
flutter_lints: ^4.0.0
build_runner: ^2.4.8
freezed: ^2.4.7
freezed: ^3.2.0

topics:
- pagination
Expand Down
Loading