Skip to content

Commit

Permalink
Suggestions box falsely displayed on top of widget
Browse files Browse the repository at this point in the history
  • Loading branch information
tstrg authored Jun 4, 2022
1 parent 4953c0f commit af5964a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/src/chips_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ class ChipsInputState<T> extends State<ChipsInput<T>>
Future.delayed(const Duration(milliseconds: 300), () {
WidgetsBinding.instance.addPostFrameCallback((_) async {
final renderBox = context.findRenderObject() as RenderBox;
await Scrollable.of(context)?.position.ensureVisible(renderBox);
await Scrollable.of(context)?.position.ensureVisible(renderBox).then(() {
WidgetsBinding.instance?.addPostFrameCallback(() {
_suggestionsBoxController.overlayEntry?.markNeedsBuild();
});
});
});
});
}
Expand Down

0 comments on commit af5964a

Please sign in to comment.