I\'m using CustomScrollView, and providing it with a controller.
ScrollController works, I even added a listener to it and print out the position of the scroll view.
@carlosx2 answer is correct but if someone wonder where to put WigetsBinding. So here it is.
@override
void initState(){
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_){
//write or call your logic
//code will run when widget rendering complete
});
}