add comment

This commit is contained in:
ashilkn 2023-10-24 14:27:51 +05:30
parent 8f80f47d91
commit bf25016b6f

View file

@ -46,7 +46,9 @@ class _SearchWidgetNewState extends State<SearchWidgetNew> {
});
SchedulerBinding.instance.addPostFrameCallback((_) {
Future.delayed(const Duration(milliseconds: 200), () {
//This buffer is for doing this operation only after SearchWidget's
//animation is complete.
Future.delayed(const Duration(milliseconds: 250), () {
final RenderBox box =
widgetKey.currentContext!.findRenderObject() as RenderBox;
final heightOfWidget = box.size.height;