ScrollController not attached to any scroll views.
'package:flutter/src/widgets/scroll_controller.dart':
package:flutter/…/widgets/scroll_controller.dart:1
Failed assertion: line ** pos **: '_positions.isNotEmpty'
This won't be an exact solution to this problem but a work around. I'm trying to build a chat app like Whatsapp. And as you already know, in the screen where you can see the messages in a group or any chat, the scroll starts from the very bottom as you enter the chat.
To achieve this, you have maybe tried to animateTo
maxScrollExtent
like me but it went to nothing but creating a lot of errors like in the title. If you just want to start the list from the bottom every time you enter to that screen or opening and closing the keyboard, all you gotta do is in the answer below.