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
666666 final topSliver = SliverStickyHeaderList (
667667 headerPlacement: HeaderPlacement .scrollingStart,
668668 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+
669673 // To preserve state across rebuilds for individual [MessageItem]
670674 // widgets as the size of [MessageListView.items] changes we need
671675 // to match old widgets by their key to their new position in
@@ -706,6 +710,10 @@ class _MessageListState extends State<MessageList> with PerAccountStoreAwareStat
706710 key: centerSliverKey,
707711 headerPlacement: HeaderPlacement .scrollingStart,
708712 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+
709717 // To preserve state across rebuilds for individual [MessageItem]
710718 // widgets as the size of [MessageListView.items] changes we need
711719 // to match old widgets by their key to their new position in
You can’t perform that action at this time.
0 commit comments