Closed ankittiwari25 closed 3 months ago
Just update _scrollToCursorAfterTextChange method to below code it will work fine.
void scrollToCursorAfterTextChange() { if (widget.scrollController != null) { final scrollController = widget.scrollController!; WidgetsBinding.instance.addPostFrameCallback(() { if (scrollController.hasClients) scrollController.animateTo( scrollController.position.maxScrollExtent, duration: const Duration(milliseconds: 200), curve: Curves.ease, ); }); } }
Thanks for reporting, I fixed the issue with version 2.1.1
which I just have released 🙏
@Fintasys thanks buddy for fixing this issue
in initState method you are adding addListener of textEditingController and and passing _scrollToCursorAfterTextChange method at that time you are using animateTo method.At that time it showing this error.