mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Link to FadeTransition from performance tip (#86379)
When suggesting more performant alternatives to rebuilding `Opacity`, `FadeTransition` is as valid as `AnimatedOpacity`, and it's less obvious ("opacity" versus "fade").
This commit is contained in:
parent
c4c5e0d758
commit
7cc853f14f
@ -197,7 +197,7 @@ class Directionality extends InheritedWidget {
|
||||
///
|
||||
/// Animating an [Opacity] widget directly causes the widget (and possibly its
|
||||
/// subtree) to rebuild each frame, which is not very efficient. Consider using
|
||||
/// an [AnimatedOpacity] instead.
|
||||
/// an [AnimatedOpacity] or a [FadeTransition] instead.
|
||||
///
|
||||
/// ## Transparent image
|
||||
///
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user