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
1c69fa7e
Commit
1c69fa7e
authored
Mar 20, 2017
by
Adam Barth
Committed by
GitHub
Mar 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reference SizeChangedLayoutNotifier from SizeChangedLayoutNotification (#8887)
Fixes #7520
parent
d1f73fd0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
size_changed_layout_notifier.dart
...flutter/lib/src/widgets/size_changed_layout_notifier.dart
+16
-2
No files found.
packages/flutter/lib/src/widgets/size_changed_layout_notifier.dart
View file @
1c69fa7e
...
@@ -9,12 +9,26 @@ import 'package:flutter/widgets.dart';
...
@@ -9,12 +9,26 @@ import 'package:flutter/widgets.dart';
/// this notification has changed, and that therefore any assumptions about that
/// this notification has changed, and that therefore any assumptions about that
/// layout are no longer valid.
/// layout are no longer valid.
///
///
/// For example, sent by [SizeChangedLayoutNotifier] whenever
/// [SizeChangedLayoutNotifier] changes size.
///
/// This notification for triggering repaints, but if you use this notification
/// to trigger rebuilds or relayouts, you'll create a backwards dependency in
/// the frame pipeline because [SizeChangedLayoutNotification]s are generated
/// during layout, which is after the build phase and in the middle of the
/// layout phase. This backwards dependency can lead to visual corruption or
/// lags.
///
/// See [LayoutChangedNotification] for additional discussion of layout
/// See [LayoutChangedNotification] for additional discussion of layout
/// notifications such as this one.
/// notifications such as this one.
///
/// See also:
///
/// * [SizeChangedLayoutNotifier], which sends this notification.
class
SizeChangedLayoutNotification
extends
LayoutChangedNotification
{
}
class
SizeChangedLayoutNotification
extends
LayoutChangedNotification
{
}
/// A widget that automatically dispatches a [SizeChangedLayoutNotifi
er] when
/// A widget that automatically dispatches a [SizeChangedLayoutNotifi
cation]
/// the layout of its child changes.
///
when
the layout of its child changes.
///
///
/// Useful especially when having some complex, layout-changing animation within
/// Useful especially when having some complex, layout-changing animation within
/// [Material] that is also interactive.
/// [Material] that is also interactive.
...
...
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