spacer static method

Widget spacer(
  1. BuildContext context, {
  2. double additionalPadding = 0.0,
})

Convenient spacer widget to place at the bottom of a Column or list.

Implementation

static Widget spacer(BuildContext context, {double additionalPadding = 0.0}) {
  final height = LiquidTabBar.reservedHeight(
    context,
    additionalPadding: additionalPadding,
  );
  return LiquidScrollPaddingScope(
    reservedHeight: height,
    child: SizedBox(height: height),
  );
}