flutter_device_preview
flutter_device_preview copied to clipboard
Upgrade `freezed_annotation` dependency
While making 1.0.0
please make sure that is depends upon freezed_annotation
1.0.0
Because device_preview >=0.7.5 depends on freezed_annotation ^0.15.0 and planter depends on freezed_annotation ^1.0.0, device_preview >=0.7.5 is forbidden.
So, because X depends on device_preview ^1.0.0-alpha.15, version solving failed.
I have similar error because of this, also have error with flutter_riverpod
:
Because device_preview >=0.7.5 depends on freezed_annotation ^0.15.0 and riverpod >=0.13.0 <1.0.0-dev.8 depends on freezed_annotation ^0.14.0, device_preview >=0.7.5 is incompatible with riverpod >=0.13.0 <1.0.0-dev.8.
Because flutter_riverpod >=0.13.0 <0.13.1 depends on riverpod ^0.13.0 and flutter_riverpod ^0.13.1 depends on riverpod ^0.13.1, flutter_riverpod ^0.13.0 requires riverpod ^0.13.0.
Thus, device_preview >=0.7.5 is incompatible with flutter_riverpod ^0.13.0.
So, because builder depends on both device_preview ^0.8.0 and flutter_riverpod ^0.13.0, version solving failed.
pub get failed (1; So, because builder depends on both device_preview ^0.8.0 and flutter_riverpod ^0.13.0, version solving failed.)
exit code 1
While making
1.0.0
please make sure that is depends uponfreezed_annotation
1.0.0Because device_preview >=0.7.5 depends on freezed_annotation ^0.15.0 and planter depends on freezed_annotation ^1.0.0, device_preview >=0.7.5 is forbidden. So, because X depends on device_preview ^1.0.0-alpha.15, version solving failed.
I found a solution, not the best, but it will let you go for now:
// add this in your pubspec.yaml file
dependency_overrides:
freezed_annotation: ^0.15.0
Same issue here, would be great to update to 1.0.0
Same issue
Same issue here.
To me the package shouldn't depend on freezed, as it always implies having to either update the package to use the latest version, or constraint the user of the package to a lower version.
Just published 1.0.0! with up-to-date dependencies
Tell me if it is now fine on your side.