Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter scroll to end of list

// If you know the height for each widget or the height is fixed.
  
  void _scrollToLatestItem(int latestIndex) {
    _controller.animateTo(
      latestIndex * _widgetHeight,
      duration: Duration(milliseconds: 300),
      curve: Curves.easeInCubic,
    );
  }
 
PREVIOUS NEXT
Tagged: #flutter #scroll #list
ADD COMMENT
Topic
Name
7+8 =