GitHub

    Table of contents

  1. Example
  2. Related Links

AnimatedCrossFade

Edit this page

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