google / flutter.widgets

https://pub.dev/packages/flutter_widgets
BSD 3-Clause "New" or "Revised" License
1.38k stars 488 forks source link

ItemScrollController attached #509

Open danishrafiqe opened 11 months ago

danishrafiqe commented 11 months ago

when this controller is attached to list ??? my problem is i want to scroll a list that is future means data is come late but when my data is populated i call this if (itemScrollController.isAttached) { if (chatMessageList.isNotEmpty) { itemScrollController.scrollTo( index: chatMessageList.length - 1, duration: Duration(seconds: 1), curve: Curves.easeInOutCubic); } } BUT itemScrollController.isAttached is not attached why ???

hanskokx commented 7 months ago

I'm having a similar issue where changing orientation of my device causes the ItemScrollController to become detached.