I have a sliverAppBar with an expandedHeight of 250. My floating is true and pinned is false. Everything works fine and dandy when I scroll down... the appbar disappears, however when i scroll up the whole sliver appears with the expandedHeight of 250.
Is there any way to make it only show the shrinked appBar height when I scroll up? My definition of the shrinked appBar is the height of the appBar when you scroll down with pinned = true.
Thanks
For reference, my code:
SliverAppBar(
leading: IconButton(
onPressed: () {
Navigator.of(context).pop();
},
icon: Icon(Icons.arrow_back_ios, color: Colors.grey)),
elevation: 1,
backgroundColor: Colors.white,
expandedHeight: 250,
floating: true,
pinned: false,
flexibleSpace: FlexibleSpaceBar(
background: Image.network(
'https://postmediacanoe.files.wordpress.com/2019/07/gettyimages-910314172-e1564420108411.jpg',
fit: BoxFit.cover,
height: 250,
width: MediaQuery.of(context).size.width),
),
),