- Notifications
You must be signed in to change notification settings - Fork29.7k
Closed
Labels
a: text inputEntering text in a text field or keyboard related problemsf: focusFocus traversal, gaining or losing focusf: material designflutter/packages/flutter/material repository.found in release: 2.5Found to occur in 2.5found in release: 2.6Found to occur in 2.6frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer version
Description
In a list ofRows withTextFormFields andIconButtons theTextInputAction.next doesn't work becauseIconButton doesn't haveskipTransversal property. There was an oldissue andPR for adding this property but I think it was removed.
Steps to Reproduce
Can be tested pressing Enter key in thisDartPad.
ListView.builder( itemCount: 5, itemBuilder: (context, index) { return Row( crossAxisAlignment: CrossAxisAlignment.start, children: [ Expanded( child: TextFormField( initialValue: index.toString(), textInputAction: TextInputAction.next, ), ), IconButton( padding: EdgeInsets.zero, iconSize: 20, icon: Icon( Icons.delete_outline_rounded, size: 20, ), splashRadius: 20, onPressed: () {}, ), ], ); }, )Expected results:
TextFields should pass focus to the next text field
Actual results:
The TextField focused only looses its focus
Running on stable 2.5.3
Metadata
Metadata
Assignees
Labels
a: text inputEntering text in a text field or keyboard related problemsf: focusFocus traversal, gaining or losing focusf: material designflutter/packages/flutter/material repository.found in release: 2.5Found to occur in 2.5found in release: 2.6Found to occur in 2.6frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer version