Improve docs for [PageStorage] (#63634)
This commit is contained in:
@@ -130,8 +130,13 @@ class PageStorageBucket {
|
||||
/// Usually you don't need to explicitly use a [PageStorage], since it's already
|
||||
/// included in routes.
|
||||
///
|
||||
/// [PageStorageKey] is used by [Scrollable] if
|
||||
/// `keepScrollOffset` is enabled to save their [ScrollPosition]s.
|
||||
/// [PageStorageKey] is used by [Scrollable] if [ScrollController.keepScrollOffset]
|
||||
/// is enabled to save their [ScrollPosition]s. When more than one
|
||||
/// scrollable ([ListView], [SingleChildScrollView], [TextField], etc.) appears
|
||||
/// within the widget's closest ancestor [PageStorage] (such as within the same route),
|
||||
/// if you want to save all of their positions independently,
|
||||
/// you should give each of them unique [PageStorageKey]s, or set some of their
|
||||
/// `keepScrollOffset` false to prevent saving.
|
||||
///
|
||||
/// {@tool dartpad --template=freeform}
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user