X-SLAYER

Untitled

Nov 30th, 2020
570
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var scrollController = new ScrollController();
  2.  
  3. @override
  4.   void initState() {
  5.     super.initState();
  6.     scrollController.addListener(() {
  7.       scrollHandler();
  8.     });
  9.   }
  10.  
  11. //----------------------------------
  12. scrollHandler() {
  13.     if (scrollController.position.pixels ==
  14.             scrollController.position.maxScrollExtent) {
  15.         yourMethode();
  16.     }
  17.   }
  18. //---------------------------------------
  19. SingleChildScrollView(
  20.    controller: scrollController,       
RAW Paste Data