jamesblasco / flutter_preview

Flutter | Because a widget-driven development requires a widget-driven preview.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dependency conflict with freezed package

easazade opened this issue · comments

there is a dependency conflict with freezed package which both use freezed_annotation

here is the error log:

Because preview >=0.0.1+7 depends on device_frame ^0.1.0 which depends on freezed_annotation ^0.7.1, preview >=0.0.1+7 requires freezed_annotation ^0.7.1.
So, because my_project depends on both freezed_annotation ^0.11.0+1 and preview ^0.0.8, version solving failed.
Running "flutter pub get" in my_project...
pub get failed (1; So, because my_project depends on both freezed_annotation ^0.11.0+1 and preview ^0.0.8, version solving failed.)

just figured out how to override specific dependencies in Flutter

just needed to add this line:

dependency_overrides:
  freezed_annotation: ^0.11.0+1