defaultLayoutBuilder function

Widget defaultLayoutBuilder(
  1. Widget topChild,
  2. Key topChildKey,
  3. Widget bottomChild,
  4. Key bottomChildKey,
)

Implementation

Widget defaultLayoutBuilder(
    Widget topChild, Key topChildKey, Widget bottomChild, Key bottomChildKey) {
  return Stack(
    alignment: AlignmentDirectional.centerStart,
    clipBehavior: Clip.hardEdge,
    children: <Widget>[
      Positioned(
        key: bottomChildKey,
        left: 0.0,
        top: 0.0,
        right: 0.0,
        child: bottomChild,
      ),
      Positioned(
        key: topChildKey,
        child: topChild,
      ),
    ],
  );
}