forked from firka/flutter
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:
@@ -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
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user