Posts by Gustavo Mauricio De Barros • 26 points
1 post
-
1
votes1
answer175
viewsA: The method 'setState' isn’t defined for the type 'Myapp'
You need to import the.Dart material library and use a Stateful widget to use setState. import 'package:flutter/material.dart'; class MeuWidget extends StatefulWidget { @override _MeuWidgetState…