Untitled

mail@pastecode.io avatar
unknown
dart
2 years ago
1.2 kB
5
Indexable
Never
final scroll = RM.injectScrolling(
  onScrolling: (scroll){

    if (scroll.hasReachedMinExtent) {
      print('Scrolling vertical list is in its top position');
    }
    if (scroll.hasReachedMaxExtent) {
      print('Scrolling vertical list is in its bottom position');
    }

      
    if (scroll.hasStartedScrolling) {
      //Called only one time.
      print('User has just start scrolling');
    }
    if (scroll.hasStartedScrollingForward) {
      print('User has just start scrolling in the forward direction');
    } 
    if (scroll.hasStartedScrollingReverse) {
      print('User has just start scrolling in the reverse direction');
    }


    if (scroll.isScrolling) {
      //Called as long as the user is scrolling
      print('User is scrolling the list');
    }
    if (scroll.isScrollingForward) {
      print('User is scrolling the list in the forward direction');
    }
    if (scroll.isScrollingReverse) {
      print('User is scrolling the list in the reverse direction');
    }


    if (scroll.hasEndedScrolling) {
      // After the user stop scrolling and  after waiting for the defined endScrollDelay 
      print('User has stopped scrolling');
    }

  },
 }
);