defaultLayoutBuilder static method

Widget defaultLayoutBuilder(
  1. List<Widget> entries
)

The default layout builder for PageTransitionSwitcher.

This function is the default way for how the new and old child widgets are placed during the transition between the two widgets. All children are placed in a Stack that sizes itself to match the largest of the child or a previous child. The children are centered on each other.

See PageTransitionSwitcherTransitionBuilder for more information on the function signature.

Implementation

static Widget defaultLayoutBuilder(List<Widget> entries) {
  return Stack(
    alignment: Alignment.center,
    children: entries,
  );
}