Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freezed 2.0 support #180

Open
w3ggy opened this issue Apr 20, 2022 · 1 comment
Open

Freezed 2.0 support #180

w3ggy opened this issue Apr 20, 2022 · 1 comment

Comments

@w3ggy
Copy link

w3ggy commented Apr 20, 2022

Freezed 2.0 was released yesterday: https://pub.dev/packages/freezed/changelog#200

After upgrading during pub get I receive the following error:


Because device_preview 1.0.0 depends on freezed_annotation ^1.0.0 and no versions of device_preview match >1.0.0 <2.0.0, device_preview ^1.0.0 requires freezed_annotation ^1.0.0.

@noinskit
Copy link

What's more, a simple dependency override is not enough this time, probably because the new freezed does not export collection/collection.dart anymore:

/flutter-pub-cache/hosted/pub.dartlang.org/device_preview-1.0.0/lib/src/views/tool_panel/sections/subsections/device_model.dart:125:9: Error: The method 'groupBy' isn't defined for the class '_PlatformModelPicker'.
 - '_PlatformModelPicker' is from 'package:device_preview/src/views/tool_panel/sections/subsections/device_model.dart' ('/flutter-pub-cache/hosted/pub.dartlang.org/device_preview-1.0.0/lib/src/views/tool_panel/sections/subsections/device_model.dart').
Try correcting the name to the name of an existing method, or defining a method named 'groupBy'.
        groupBy<DeviceInfo, DeviceType>(devices, (d) => d.identifier.type);
        ^^^^^^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants