mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Improve docs for [PageStorage] (#63634)
This commit is contained in:
parent
ee12d7c3fc
commit
2f2130a885
|
@ -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}
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue