flutter_typeahead
flutter_typeahead copied to clipboard
[Bug] TypeAheadField with 'direction' property set to VerticalDirection.up is not focused.
Steps to reproduce
- Write a program like the following.
Column(
children: [
TextFormField(
textInputAction: TextInputAction.next,
),
TypeAheadField<String>(
direction: VerticalDirection.up,
itemBuilder: (context, value) {
return Text(value);
},
onSelected: (value) {},
suggestionsCallback: (search) {
return ['test'];
},
),
],
),
- Enter text in the first TextFormField and click the
next
button on the keyboard.
Expected results
Focus moves to next TypeAheadField.
Actual results
TypeAheadField is not focused.
If I set direction
of TypeAheadField to VerticalDirection.down, it works fine.
Package Version
5.1.0
Platform
Android, iOS
Code sample
Code sample
Column(
children: [
TextFormField(
textInputAction: TextInputAction.next,
),
TypeAheadField<String>(
direction: VerticalDirection.up,
itemBuilder: (context, value) {
return Text(value);
},
onSelected: (value) {},
suggestionsCallback: (search) {
return ['test'];
},
),
],
),
Logs
Logs
nothing
Screenshots or Video
Screenshots / Video demonstration
nothing
Reproducible on 5.2.0