pading method

Widget pading({
  1. double top = 0,
  2. double left = 0,
  3. double right = 0,
  4. double bottom = 0,
})

设置边距

Implementation

Widget pading({
  double top = 0,
  double left = 0,
  double right = 0,
  double bottom = 0,
}) {
  return Padding(
    padding: EdgeInsets.only(
      top: top,
      left: left,
      right: right,
      bottom: bottom,
    ),
    child: this,
  );
}