How to shift focus to the next TextField in Flutter?
Screenshot: Just use: textInputAction: TextInputAction.next: To move the cursor to the next field. textInputAction: TextInputAction.done: To close the keyboard. @override Widget build(BuildContext context) { return Scaffold( body: Column( children: <Widget>[ TextField( decoration: InputDecoration(hintText: ‘TextField A’), textInputAction: TextInputAction.next, // Moves focus to next. ), TextField( decoration: InputDecoration(hintText: ‘TextField B’), textInputAction: TextInputAction.next, // Moves focus to next. … Read more