flutter '_positions.is not empty' scrollcontroller not attached to any scroll views code example
Example: ScrollController not attached to any scroll views
flutter - ScrollController not attached to any scroll views
-------------------------
@override
void initState() {
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_){
//code will run when widget rendering complete
});
}