0

It is possible to set some constraints on where the SliverList stops rendering? For example, if we have a transparent SliverAppBar and SliverList, the sliver list will be visible behind the SliverAppBar, can we somehow set the render constraints to only render below the SliverAppBar? PaintOrigin sort of does this but very poorly.

Levy77
  • 219
  • 1
  • 9

1 Answers1

0

You can use the SliverClip widget from my package sliver_tools for this. It by default clips away any overlap (which is what happens when having the appbar above it).

Pieter van Loon
  • 5,318
  • 1
  • 6
  • 15