I have been learning flutter for last few days and I encountered a problem while developing my app. So I have a basic form containing all the basic input fields and after a user
Use
FocusScope.of(context).previousFocus();
Column( children: [ TextField(...), // 1st TextField TextField(...), // 2nd TextField RaisedButton( onPressed: () => FocusScope.of(context).previousFocus(), // This is what you need child: Text("Go back"), ), ], )