Answers for "no material widget found in flutter"

1

No Material widget found.

i solved this issue by adding Scaffold to my Screen i want to Navigator to it
Posted by: Guest on September-15-2021
0

no material widget found

@override
Widget build(BuildContext context) {
  return new Scaffold(
    body: new Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: <Widget>[
        new TextField(
            controller: _controller,
            decoration: new InputDecoration(
                hintText: 'Type something',
            ),
        ),
        new RaisedButton(
            onPressed: () {
              showDialog(
                  context: context,
                  child: new AlertDialog(
                      title: new Text('What you typed'),
                      content: new Text(_controller.text),
                  ),
              );
            },
            child: new Text('DONE'),
        ),
      ],
    ),
  );
}
Posted by: Guest on December-13-2021

Code answers related to "no material widget found in flutter"

Browse Popular Code Answers by Language