Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
9585acd4
Commit
9585acd4
authored
Jan 14, 2020
by
Michel Feinstein
Committed by
Flutter GitHub Bot
Jan 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing AutomaticKeepAlive Docs (#48575)
parent
9f145f6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
scroll_view.dart
packages/flutter/lib/src/widgets/scroll_view.dart
+4
-4
sliver.dart
packages/flutter/lib/src/widgets/sliver.dart
+4
-4
No files found.
packages/flutter/lib/src/widgets/scroll_view.dart
View file @
9585acd4
...
@@ -733,10 +733,10 @@ abstract class BoxScrollView extends ScrollView {
...
@@ -733,10 +733,10 @@ abstract class BoxScrollView extends ScrollView {
/// widget subtree with other widgets.
/// widget subtree with other widgets.
///
///
/// * Using [AutomaticKeepAlive] widgets (inserted by default when
/// * Using [AutomaticKeepAlive] widgets (inserted by default when
/// [addAutomaticKeepAlives] is true).
Instead of unconditionally caching the
/// [addAutomaticKeepAlives] is true).
[AutomaticKeepAlive] allows descendant
///
child element subtree when scrolling off-screen like [KeepAlive],
///
widgets to control whether the subtree is actually kept alive or not.
///
[AutomaticKeepAlive] can let whether to cache the subtree be determined
///
This behavior is in contrast with [KeepAlive], which will unconditionally keep
///
by descendant logic in the subtre
e.
///
the subtree aliv
e.
///
///
/// As an example, the [EditableText] widget signals its list child element
/// As an example, the [EditableText] widget signals its list child element
/// subtree to stay alive while its text field has input focus. If it doesn't
/// subtree to stay alive while its text field has input focus. If it doesn't
...
...
packages/flutter/lib/src/widgets/sliver.dart
View file @
9585acd4
...
@@ -91,10 +91,10 @@ int _kDefaultSemanticIndexCallback(Widget _, int localIndex) => localIndex;
...
@@ -91,10 +91,10 @@ int _kDefaultSemanticIndexCallback(Widget _, int localIndex) => localIndex;
/// `addRepaintBoundaries`.
/// `addRepaintBoundaries`.
///
///
/// * Using [AutomaticKeepAlive] widgets (inserted by default in
/// * Using [AutomaticKeepAlive] widgets (inserted by default in
/// [SliverChildListDelegate] or [SliverChildListDelegate]).
Instead of
/// [SliverChildListDelegate] or [SliverChildListDelegate]).
///
unconditionally caching the child element subtree when scrolling
///
[AutomaticKeepAlive] allows descendant widgets to control whether the
///
off-screen like [KeepAlive], [AutomaticKeepAlive] can let whether to
///
subtree is actually kept alive or not. This behavior is in contrast with
///
cache the subtree be determined by descendant logic in the subtre
e.
///
[KeepAlive], which will unconditionally keep the subtree aliv
e.
///
///
/// As an example, the [EditableText] widget signals its sliver child element
/// As an example, the [EditableText] widget signals its sliver child element
/// subtree to stay alive while its text field has input focus. If it doesn't
/// subtree to stay alive while its text field has input focus. If it doesn't
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment