From f2be1260dfe59084cb4ec382dbbe914ed62c8bf8 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Mon, 8 Jul 2024 12:33:14 -0700 Subject: [PATCH] Added SliverFloatingHeader.snapMode (#151289) When a user scroll gesture ends, Material Design floating headers snap into place by animating as far as needed and overlaying the underlying scrollable content. For example Gmail's search header works this way. Other apps handle the snap animation by scrolling content out of the way. Instagram for example. Added `SliverFloatingHeader.snapMode`, whose value can be `FloatingHeaderSnapMode.overlay` (the default) or `FloatingHeaderSnapMode.scroll`, so that developers can choose the snap animation style they want. | FloatingHeaderSnapMode.overlay | FloatingHeaderSnapMode.scroll | | --- | --- | |