buildCard method

  1. @override
Widget buildCard(
  1. BuildContext context,
  2. HeroAnimation heroInfo
)
override

Implementation

@override
Widget buildCard(BuildContext context, HeroAnimation heroInfo) {
  if (heroInfo.animation == null) {
    return _constrained(heroInfo);
  } else {
    return Column(
      mainAxisSize: MainAxisSize.min,
      crossAxisAlignment: CrossAxisAlignment.stretch,
      children: [
        for (final w in children) w.animate(heroInfo),
      ],
    );
  }
}