You have the following code in your build function:
final formKey = GlobalKey<FormState>();
This is the problem. You have to either make it static or move to
initState()
You have the following code in your build function:
final formKey = GlobalKey<FormState>();
This is the problem. You have to either make it static or move to
initState()