VScroll function

Widget VScroll({
  1. Key? key,
  2. required List<Widget> children,
  3. int paddingLeft = 0,
  4. int paddingRight = 0,
  5. int paddingTop = 0,
  6. int paddingBottom = 0,
})

Implementation

Widget VScroll({
  Key? key,
  required List<Widget> children,
  int paddingLeft = 0,
  int paddingRight = 0,
  int paddingTop = 0,
  int paddingBottom = 0,
}) {
  return SingleChildScrollView(
    key: key,
    padding: EdgeInsets.only(
      left: paddingLeft.toDouble(),
      right: paddingRight.toDouble(),
      top: paddingTop.toDouble(),
      bottom: paddingBottom.toDouble(),
    ),
    child: Column(
      children: children,
    ),
  );
}