GitHub

    Table of contents

  1. 示例
  2. 相关链接

AnimatedCrossFade

Edit this page

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

示例

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,
)

相关链接