Skip to content

the named parameter 'onpressed' is required #61

@Niyanth-guru

Description

@Niyanth-guru

Hey, I am trying to just get to know the scaffold widget, while giving the floatactionbutton widget I am getting this error:
The named parameter onPressed is required, but there is no corresponding argument
If I have to just add a onPressed action for the widget, then how is that the method followed in the Youtube video is not getting the same error? Can someone tell me if I have done something wrong?(Screenshot below for reference)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions