I am new to Flutter and I was trying do execute the example here. I just want to use the TextField widget to get some user input. The issue is that I get a \"No Material wid
The error means you have to wrap the column inside a Material widget, you could place it as a body to the scaffold or place it as a home to Materialapp. for instance:
`return MaterialApp(
home: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
new TextField(
controller: _controller,
decoration: new InputDecoration(
hintText: 'Type something',
),
),
);`
or
`return Scaffold(
body: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
new TextField(
controller: _controller,
decoration: new InputDecoration(
hintText: 'Type something',
),
),
);``