File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -666,6 +666,10 @@ class _MessageListState extends State<MessageList> with PerAccountStoreAwareStat
666
666
final topSliver = SliverStickyHeaderList (
667
667
headerPlacement: HeaderPlacement .scrollingStart,
668
668
delegate: SliverChildBuilderDelegate (
669
+ // None of the children ever need to keep themselves alive;
670
+ // opt out of adding AutomaticKeepAlive widgets that we don't need.
671
+ addAutomaticKeepAlives: false ,
672
+
669
673
// To preserve state across rebuilds for individual [MessageItem]
670
674
// widgets as the size of [MessageListView.items] changes we need
671
675
// to match old widgets by their key to their new position in
@@ -706,6 +710,10 @@ class _MessageListState extends State<MessageList> with PerAccountStoreAwareStat
706
710
key: centerSliverKey,
707
711
headerPlacement: HeaderPlacement .scrollingStart,
708
712
delegate: SliverChildBuilderDelegate (
713
+ // None of the children ever need to keep themselves alive;
714
+ // opt out of adding AutomaticKeepAlive widgets that we don't need.
715
+ addAutomaticKeepAlives: false ,
716
+
709
717
// To preserve state across rebuilds for individual [MessageItem]
710
718
// widgets as the size of [MessageListView.items] changes we need
711
719
// to match old widgets by their key to their new position in
You can’t perform that action at this time.
0 commit comments