title: Hide title in Flutter SliverAppBar on scroll
body: <p>I have a CustomScrollView with slivers that's working, but am not finding a way to fully hide the top portion of the SliverAppBar (i.e., on scroll, I want to hide the image and title, but show the bottom portion):</p>
  
  <p>EDIT: As shown in the images, I want to keep the bottom of the SliverAppBar on scrolling. Setting "pinned: false" hides both on scroll, so won't work for me.</p>
  
  <p><a href="https://i.stack.imgur.com/LEUZE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LEUZE.jpg" alt="expanded"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Jdree.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jdree.jpg" alt="collapsed"></a></p>
  
  <p>Even before I added the padding, I wanted my title to hide on collapse, like this:</p>
  
  <p><a href="https://i.stack.imgur.com/7dUza.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7dUza.gif" alt="enter image description here"></a></p>
  
  <p>now that it's truncating, I'd really like to hide it.</p>
  
  <p>I've seen posts where you can hide the title in a NestedScrollView (e.g., the above gif), but I'd like to keep my CustomScrollView if possible?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>class QuestionsScreen extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      final questionsMgr = Provider.of&lt;Questions&gt;(context);
      final List&lt;Question&gt; questions = questionsMgr.questions;
  
      return CustomScrollView(
        slivers: &lt;Widget&gt;[
          SliverAppBar(
            bottom: PreferredSize(
              preferredSize: const Size.fromHeight(0),
              child: ChangeNotifierProvider.value(
                child: Padding(
                  padding: const EdgeInsets.all(8.0),
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: &lt;Widget&gt;[
                      ScoreText(),
                      InstructionsText(),
                    ],
                  ),
                ),
              ),
            ),
            backgroundColor: questionsMgr.getScoreColor(),
            floating: false,
            expandedHeight: 225,
            pinned: true,
            title: Text(
              "Checklist",
              textAlign: TextAlign.center,
            ),
            forceElevated: true,
            flexibleSpace: FlexibleSpaceBar(
              centerTitle: true,
              background: Image.asset(
                "assets/images/PalFM_blue.jpg",
                fit: BoxFit.cover,
              ),
            ),
          ),
          SliverList(
  </code></pre>