You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
I'm using Flutter Riverpod 2.4.9 to generate an ImageProvider object (either FileImage, AssetImage, NetworkImage...), according to some variable.
The generator doesn't compile correctly, the ImageProvider type being replaced by InvalidType.
Expected behavior
The generated file should look like final testImageProvider = AutoDisposeProvider<ImageProvider>.internal(...
instead of final testImageProvider = AutoDisposeProvider<InvalidType>.internal(...
Workaround
At the moment, I replace the current type by hand in the generate file.
It is obviously a tedious task; best would be to fix the ImageProvider compatibility issue instead.
Is it because the object class name ImageProvider would interfere with any Riverpod logic?
The text was updated successfully, but these errors were encountered:
Bug description
I'm using Flutter Riverpod 2.4.9 to generate an
ImageProvider
object (either FileImage, AssetImage, NetworkImage...), according to some variable.The generator doesn't compile correctly, the
ImageProvider
type being replaced byInvalidType
.To Reproduce
Here is a simplified code to reproduce:
Expected behavior
The generated file should look like
final testImageProvider = AutoDisposeProvider<ImageProvider>.internal(...
instead of
final testImageProvider = AutoDisposeProvider<InvalidType>.internal(...
Workaround
At the moment, I replace the current type by hand in the generate file.
It is obviously a tedious task; best would be to fix the ImageProvider compatibility issue instead.
Is it because the object class name
ImageProvider
would interfere with any Riverpod logic?The text was updated successfully, but these errors were encountered: