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
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)
The text was updated successfully, but these errors were encountered:
U should add onPressed function like:
floatingActionButton: FloatingActionButton(
child: Text("Text"),
backgroundColor: Colors.red,
onPressed: (){
print("Dont push this button");
},
),
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)
The text was updated successfully, but these errors were encountered: