diff --git a/lib/widgets/stream_list.dart b/lib/widgets/stream_list.dart index 2da7a80d38..6f74726f23 100644 --- a/lib/widgets/stream_list.dart +++ b/lib/widgets/stream_list.dart @@ -75,12 +75,13 @@ class _StreamListPageState extends State with PerAccountStoreAwa slivers: [ if (pinned.isNotEmpty) ...[ _SubscriptionListHeader(context: context, label: "Pinned"), - _SubscriptionList(unreadsModel: unreadsModel, subscriptions: pinned, padBottom: active.isEmpty), + _SubscriptionList(unreadsModel: unreadsModel, subscriptions: pinned), ], if (active.isNotEmpty) ...[ _SubscriptionListHeader(context: context, label: "Active"), - _SubscriptionList(unreadsModel: unreadsModel, subscriptions: active, padBottom: true), + _SubscriptionList(unreadsModel: unreadsModel, subscriptions: active), ], + const SliverSafeArea(sliver: SliverToBoxAdapter(child: SizedBox.shrink())), ])))); } } @@ -126,24 +127,20 @@ class _SubscriptionList extends StatelessWidget { const _SubscriptionList({ required this.unreadsModel, required this.subscriptions, - required this.padBottom, }); final Unreads? unreadsModel; final List subscriptions; - final bool padBottom; @override Widget build(BuildContext context) { - return SliverSafeArea( - bottom: padBottom, - sliver: SliverList.builder( - itemCount: subscriptions.length, - itemBuilder: (BuildContext context, int index) { - final subscription = subscriptions[index]; - final unreadCount = unreadsModel!.countInStreamNarrow(subscription.streamId); - return StreamListItem(subscription: subscription, unreadCount: unreadCount); - })); + return SliverList.builder( + itemCount: subscriptions.length, + itemBuilder: (BuildContext context, int index) { + final subscription = subscriptions[index]; + final unreadCount = unreadsModel!.countInStreamNarrow(subscription.streamId); + return StreamListItem(subscription: subscription, unreadCount: unreadCount); + }); } }