Skip to content

Commit 39024b1

Browse files
committed
autocomplete: Use directional alignment for autocomplete results
Use AlignmentDirectional.bottomStart instead of Alignment.bottomLeft for the autocomplete dropdown positioning. This ensures the dropdown alignment respects text direction in RTL layouts. Fixes the issue described here: zulip#1991 (comment)
1 parent 5691ed1 commit 39024b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/autocomplete.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class _AutocompleteFieldState<QueryT extends AutocompleteQuery, ResultT extends
132132
// AutocompleteView.
133133
optionsViewBuilder: (context, _, _) {
134134
return Align(
135-
alignment: Alignment.bottomLeft,
135+
alignment: AlignmentDirectional.bottomStart,
136136
child: Material(
137137
elevation: 4.0,
138138
child: ConstrainedBox(

0 commit comments

Comments
 (0)