- Flutter Widget Livebook

AnimatedCrossFade

A widget that cross-fades between two given children and animates itself between their sizes.

Example

AnimatedCrossFade(
  duration: const Duration(seconds: 3),
  firstChild: const FlutterLogo(style: FlutterLogoStyle.horizontal, size: 100.0),
  secondChild: const FlutterLogo(style: FlutterLogoStyle.stacked, size: 100.0),
  crossFadeState: _first ? CrossFadeState.showFirst : CrossFadeState.showSecond,
)

Related Links

  1. Example
  2. Related Links