-3

I have a BUTTON ,here is some code:
enter image description here1

and i got the error like this:enter image description here

I've never met an error like this, but when i add the 'dynamic' like this: enter image description here

Houssem
  • 6,409
  • 3
  • 18
  • 28
hutuzhu
  • 3
  • 6
  • 1
    Please ask your question in the title instead of stating you have a question. Also consider putting the code and errors inside code blocks and quotes or at least an image instead of a URL to an image. Also you never really asked a question. – Noodles Jun 11 '19 at 11:40

1 Answers1

2

Try to change your Code and implement this :

onPressed: () {
  Navigator.push(
    context,
    MaterialPageRoute(builder: (context) => Newfa()),
  );
}
Houssem
  • 6,409
  • 3
  • 18
  • 28