title: Scroll Controller is not listening to scroll in Flutter
body: <p>Im trying to listen to scroll for lazy loading but im not getting any Listen values,I have used ListView.builder widget and have attached a scroll contoller (_controller) and have instantiated controller in initState() method, need help with the issue</p>
  <pre><code>class _FeedsState extends State&lt;Feeds&gt; {
    ScrollController _controller;
    int pageNumber = 1;
  
    @override
    void initState() {
      super.initState();
      _controller = new ScrollController();
      _controller.addListener(scrollListener);
  
      SchedulerBinding.instance.addPostFrameCallback((_) {
        _controller.animateTo(
          0.0,
          duration: const Duration(milliseconds: 10),
          curve: Curves.easeOut,
        );
      });
    }
  
    @override
    Widget build(BuildContext context) {
      print(widget.feedDetails);
      return widget.feedDetails.length == 0
          ? PostSomething(
              isAdmin: widget.isAdmin,
            )
          : ListView.builder(
              shrinkWrap: true,
              controller: _controller,
              itemBuilder: (context, index) {
                return Column(
                  children: [
                    index == 0
                        ? PostSomething(
                            isAdmin: widget.isAdmin,
                            profilePic: widget.feedDetails[0][&quot;profile_pic&quot;])
                        : Container(),
                    (Posts(
                      index: index,
                      feedDetails: widget.feedDetails[index],
                      displayProfileNavigation: widget.displayProfileNavigation,
                    )),
                  ],
                );
              },
              itemCount: widget.feedDetails.length,
            );
    }
  
    void scrollListener() {
      print(&quot;Scrolling&quot;);
      if (_controller.position.pixels == _controller.position.maxScrollExtent) {
        print(&quot;Coooool&quot;);
      }
    }
  }
  </code></pre>