Bowman74 / fmvvm

An MVVM framework for creating Flutter apps
MIT License
19 stars 7 forks source link

Bad state: The same type cannot be registered twice #20

Open pishguy opened 5 years ago

pishguy commented 5 years ago

when i try to use Fmvvm like fragment in android i get this error:

Bad state: The same type cannot be registered twice

Bowman74 commented 5 years ago

That error happens if you try to register two different classes in the component resolver to the same type which isn't allowed. The components are resolved by type so if you were allowed to register two components to the same type, it wouldn't know which one to return.