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
Its difficult to see exactly what is happening here as the call stack doesn't have any reference to my code but here is my code and the change that I make to get it to work.
Where I call
GenericSidePanelState(panelType: ContourThematicPanelType.meticDisplay, width: 440);
I get
"Exception has occurred.
_TypeError (type 'int' is not a subtype of type 'double?')"
line 743
Inherited_provider.dart class _CreateInheritedProviderState
Where
class GenericSidePanelState extends PanelDetailsState {
ContourThematicPanelType panelType;
Its difficult to see exactly what is happening here as the call stack doesn't have any reference to my code but here is my code and the change that I make to get it to work.
Where I call
GenericSidePanelState(panelType: ContourThematicPanelType.meticDisplay, width: 440);
I get
"Exception has occurred.
_TypeError (type 'int' is not a subtype of type 'double?')"
line 743
Inherited_provider.dart class _CreateInheritedProviderState
Where
class GenericSidePanelState extends PanelDetailsState {
ContourThematicPanelType panelType;
GenericSidePanelState({width, required this.panelType}) : super(width: width);
}
and
abstract class PanelDetailsState {
double? width;
PanelDetailsState({required this.width});
}
When I change this to (note the ".0" added to 440)
GenericSidePanelState(panelType: ContourThematicPanelType.meticDisplay, width: 440.0);
then it works.
The text was updated successfully, but these errors were encountered: