title: Flutter NestedScrollView TabBar and PagedListView always scrolls the SliverAppBar
body: <p>I'm trying to use a NestedScrollView with a TabBar on the SliverAppBar and the TabBarView on the body, and inside the TabBarViews pages put a PagedListView.</p>
  <p><strong>Is it possible when my PagesListViews has no items or only a few (not enough for scrolling), not to scroll the floating SliverAppBar??</strong></p>
  <p>I think this happens because the TabBarView is taking all the height, is it possible no avoid this behavior?</p>
  <pre><code>    class TestPage extends StatefulWidget {
        @override
        State&lt;StatefulWidget&gt; createState() =&gt; _TestScreenState();
      }
      
      class _TestScreenState extends State&lt;TestPage&gt;
          with TickerProviderStateMixin {
        late TabController tabController;
        final PagingController&lt;int, String&gt; pagingController =
            PagingController(firstPageKey: 0);
        final PagingController&lt;int, String&gt; pagingController2 =
            PagingController(firstPageKey: 0);
        @override
        void initState() {
          tabController = TabController(length: 2, vsync: this, initialIndex: 0);
          pagingController.addPageRequestListener((pageKey) {
            if (pageKey &lt; 2) {
              pagingController.appendPage(
                  List.generate(10, (index) =&gt; 'page1 $index'), pageKey + 1);
            } else {
              pagingController
                  .appendLastPage(List.generate(10, (index) =&gt; 'page1 $index'));
            }
          });
      
          pagingController2
              .addPageRequestListener((pageKey) =&gt; pagingController2.appendLastPage(
                    List.generate(3, (index) =&gt; 'page1 $index'),
                  ));
          super.initState();
        }
      
        @override
        Widget build(BuildContext context) {
          return NestedScrollView(
            headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
              return &lt;Widget&gt;[
                SliverAppBar(
                  expandedHeight: 200,
                  collapsedHeight: 200,
                  pinned: false,
                  floating: true,
                  bottom: TabBar(
                      controller: tabController,
                      tabs: List.generate(
                          2,
                          (index) =&gt; Tab(
                                text: 'tab $index',
                              ))),
                )
              ];
            },
            body: TabBarView(
              controller: tabController,
              children: [
                PagedListView&lt;int, String&gt;(
                  shrinkWrap: true,
                  pagingController: pagingController,
                  padding: EdgeInsets.only(
                      top: 10,
                      bottom: kBottomNavigationBarHeight +
                          MediaQuery.of(context).padding.bottom),
                  builderDelegate: PagedChildBuilderDelegate&lt;String&gt;(
                      itemBuilder: (context, item, index) {
                        return ListTile(title: Text(item));
                      },
                      noItemsFoundIndicatorBuilder: (_) =&gt; const Text('no items')),
                ),
                PagedListView&lt;int, String&gt;(
                  shrinkWrap: true,
                  pagingController: pagingController2,
                  padding: EdgeInsets.only(
                      top: 10,
                      bottom: kBottomNavigationBarHeight +
                          MediaQuery.of(context).padding.bottom),
                  builderDelegate: PagedChildBuilderDelegate&lt;String&gt;(
                      itemBuilder: (context, item, index) {
                        return ListTile(title: Text(item));
                      },
                      noItemsFoundIndicatorBuilder: (_) =&gt; const Text('no items')),
                ),
              ],
            ),
          );
        }
      }
  </code></pre>