From 734d2a22feef3e5ab8dfcc4ef817aa0c1dea775c Mon Sep 17 00:00:00 2001 From: Chintan Patel <48344023+chihempat@users.noreply.github.com> Date: Mon, 2 Nov 2020 15:23:02 +0530 Subject: [PATCH] AdoptAWidget: SliverWithKeepAliveWidget (#69470) (#69557) --- packages/flutter/lib/src/widgets/sliver.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/flutter/lib/src/widgets/sliver.dart b/packages/flutter/lib/src/widgets/sliver.dart index e0884b5ee4..2b3bfa3b39 100644 --- a/packages/flutter/lib/src/widgets/sliver.dart +++ b/packages/flutter/lib/src/widgets/sliver.dart @@ -746,6 +746,15 @@ class SliverChildListDelegate extends SliverChildDelegate { } /// A base class for sliver that have [KeepAlive] children. +/// +/// See also: +/// +/// * [KeepAlive], which marks whether its chlild widget should be kept alive. +/// * [SliverChildBuilderDelegate] and [SliverChildListDelegate], slivers +/// which make usr of the keep alive functionality through the +/// `addAutomaticKeepAlives` property. +/// * [SliverGrid] and [SliverList], two sliver widgets that are commonly +/// wrapped with [KeepAlive] widgets to preserve their sliver child subtrees. abstract class SliverWithKeepAliveWidget extends RenderObjectWidget { /// Initializes fields for subclasses. const SliverWithKeepAliveWidget({