: Error: A class declaration must have a body, even if it is empty.
lib/main.dart:34
Try adding an empty body.
class MyHomePage extends StatelessWidget(
^^^^^^^^^^^^^^^
: Error: Expected a declaration, but got '('.
lib/main.dart:34
class MyHomePage extends StatelessWidget(
^
: Error: Expected '{' before this.
lib/main.dart:37
)
^
: Error: Expected a declaration, but got ')'.
lib/main.dart:37
)
^
class MyHOMEPAGE extends StatelessWidget(
@Override
Widget build(BuildContext context){
return CENTER(
child: Text('heloo world'),
)
})
int _counter = 0;
void _incrementCounter() {
setState(() {
// This call to setState tells the Flutter framework that something has
// changed in this State, which causes it to rerun the build method below
// so that the display can reflect the updated values. If we changed
// _counter without calling setState(), then the build method would not be
// called again, and so nothing would appear to happen.
_counter++;
});
}
@override
Widget build(BuildContext context) {