Trying to create a header using CupertinoSliverNavigationBar. I'm thinking of a UI like the Browse tap in the iOS health app.
CustomScrollView(
slivers: [
const CupertinoSliverNavigationBar(
backgroundColor: CupertinoColors.black,
largeTitle: Text('Title'),
stretch: true,
),
const CupertinoSliverNavigationBar(
backgroundColor: CupertinoColors.black,
transitionBetweenRoutes: false,
leading: null,
automaticallyImplyLeading: false,
largeTitle: SizedBox.shrink(),
middle: CupertinoSearchTextField(),
alwaysShowMiddle: true,
),
SliverToBoxAdapter(
// List Items...
),
],
),
For this, I tried using two CupertinoSliverNavigationBar.
However, I was not able to remove the empty largeTitle space in the second NavigationBar.
Is there a way to implement this UI?


sovled this problem with this way.