'A function body must be provided. Try adding a function body
I wrote it myself because statefulwidget didn't automatically create the pattern and out of 7 different errors I just couldn't fix this
import 'package:flutter/material.dart';
class NaberMain extends StatefulWidget {
NaberMain({Key key}) : super(key: key)
// ignore: empty_constructor_bodies
@override
_NaberMainState createState() => _NaberMainState();
}
class _NaberMainState extends State<NaberMain> {
@override
Widget build(BuildContext context) {
return Container(
);
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

