0
I have a button that makes a request get
on a server.
Data passing is correct however at the time I try to recover in the build class of error.
class Layout_ResultadoExames extends StatefulWidget{
String Dados;
Layout_ResultadoExames({this.Dados});
@override
_Layout_ResultadoExames createState() => _Layout_ResultadoExames();
}
Post and detail the error, and mainly the code where the error occurs.
– rubStackOverflow
In the Class that contains the build I try to recover what arrived.
– LucasWeech
class _Layout_resultswears extends State<Layout_resultswears> with Singletickerproviderstatemixin { var Data = widget. Data; }
– LucasWeech
But this error appears "only Static Members can be accessed in initializers"
– LucasWeech