buildChanging method

  1. @override
Widget buildChanging (
  1. BuildContext context,
  2. Widget fromWidget,
  3. Widget toWidget,
  4. Animation<double> animation
)
override

Wraps the old Widget fromWidget and to new Widget toWidget in an animated one for changing items.

Implementation

@override
Widget buildChanging(final BuildContext context, final Widget fromWidget,
    final Widget toWidget, final Animation<double> animation) {
  return MorphTransition(
      fromChild: fromWidget, toChild: toWidget, animation: animation);
}