1

I am now using NestedScrollView to show article list, this is the code I am using now:

return DefaultTabController(
      length: tabs.length,
      child: NestedScrollView(
        headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
          return <Widget>[
            SliverOverlapAbsorber(
                handle: NestedScrollView.sliverOverlapAbsorberHandleFor(
                  context,
                ),
                sliver: SliverAppBar(


                )),
          ];
        }}
)
)

is it possbile to remove the header headerSliverBuilder? when I am removed, it shows the headerSliverBuilder can not be null. But now I do not want a header in my app.

1 Answer 1

3

Yes it's simple. You just have to do like this:

headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) { return []; },

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.