Home > OS >  error: The named parameter 'child' isn't defined in Dart Flutter
error: The named parameter 'child' isn't defined in Dart Flutter

Time:03-01

For some reason it's throwing me this error for line 19 (highlighted)

The named parameter 'child' isn't defined.

Is there anything I'm not seeing?

Thanks!

-T

enter image description here

CodePudding user response:

The AppBar widget does not have any child property. You need to change it with the action.

here is example

appBar: AppBar(
    actions: <Widget>[
        RaisedButton(
          onPressed: () async {},
          child: Text('Sign in Anen'),
       ),
    ],
),
  • Related