Can't use FlutterFlowIconButton in custom widget

I am trying to create a custom widget which uses the FlutterFlowIconButton widget found in' '/flutter_flow/flutter_flow_icon_button.dart'. Other widgets created by the visual builder using FlutterFlowIconButton seems to be no problem. But when I try to import and use it inside my custom widget, I get this error:

Why is this bug happening and how do you fix it? Why is it complaining that FlutterFlowIconButton does not exist when in fact all widgets created by the visual builder use it with no problem?

1
2 replies