title: How can I Focus on 1 textfield only in a cell of a datatable in flutter?
body: <p>I have a datatable with 4 columns and textfields in them. I want to focus to other textfields in the same row only, on submitting values.As soon as I focus on second, all textfields in those columns are focused with cursor. How to avoid that? For example focus in on cell[3,1] and on submit it moves to cell[3,2] textfield, so cursor should blink only in that cell not in whole second column.</p>
  <pre><code>DataTable(
              showCheckboxColumn: false,
              columns: [
                DataColumn(
                  label: Text(
                    firstName.toString(),
                    style: Theme.of(context).textTheme.headline5,
                  ),
                  numeric: true,
                ),
                DataColumn(
                  label: Text(
                    secondName.toString(),
                    style: Theme.of(context).textTheme.headline5,
                  ),
                  numeric: true,
                ),
                DataColumn(
                  label: Text(
                    thirdName.toString(),
                    style: Theme.of(context).textTheme.headline5,
                  ),
                  numeric: true,
                ),
                DataColumn(
                  label: Text(
                    lastName.toString(),
                    style: Theme.of(context).textTheme.headline5,
                  ),
                  numeric: true,
                ),
              ],
              rows: users
                  .map(
                    (user) =&gt; DataRow(cells: [
                      DataCell(
                        TextField(
                          autofocus: true,
                          textInputAction: TextInputAction.next,
                          onSubmitted: (String s) {
                            FocusScope.of(context).unfocus();
                            FocusScope.of(context).requestFocus(secondFocus);
                          },
                          style: Theme.of(context).textTheme.headline5,
                          textAlign: TextAlign.center,
                          keyboardType: TextInputType.number,
                          onChanged: (text) {
                            print(&quot;First text field: $text&quot;);
                            user.firstName = int.parse(text);
                            _calculate();
                          },
                        ),
                      ),
                      DataCell(
                        TextField(
                          autofocus: false,
                          focusNode: secondFocus,
                          textInputAction: TextInputAction.next,
                          onSubmitted: (String s) {
                            FocusScope.of(context).unfocus();
                            FocusScope.of(context).requestFocus(thirdFocus);
                          },
                          style: Theme.of(context).textTheme.headline5,
                          textAlign: TextAlign.center,
                          keyboardType: TextInputType.number,
                          onChanged: (text) {
                            print(&quot;Second text field: $text&quot;);
                            user.secondName = int.parse(text);
                            _calculate();
                          },
                        ),
                      ),
                      DataCell(
                        TextField(
                          focusNode: thirdFocus,
                          textInputAction: TextInputAction.next,
                          onSubmitted: (String s) {
                            FocusScope.of(context).unfocus();
                            FocusScope.of(context).requestFocus(lastFocus);
                          },
                          style: Theme.of(context).textTheme.headline5,
                          textAlign: TextAlign.center,
                          keyboardType: TextInputType.number,
                          onChanged: (text) {
                            print(&quot;Third text field: $text&quot;);
                            user.thirdName = int.parse(text);
                            _calculate();
                          },
                        ),
                      ),
                      DataCell(
                        TextField(
                          focusNode: lastFocus,
                          style: Theme.of(context).textTheme.headline5,
                          textAlign: TextAlign.center,
                          keyboardType: TextInputType.number,
                          onSubmitted: (value) {
                            _addRow();
                          },
                          onChanged: (text) {
                            print(&quot;Last text field: $text&quot;);
                            user.lastName = int.parse(text);
                            _calculate();
                          },
                        ),
                      ),
                    ]),
                  )
                  .toList(),
            ),
  </code></pre>