tightSize method

Widget tightSize(
  1. double size, {
  2. Key? key,
})

约束 宽高 size

Implementation

Widget tightSize(
  double size, {
  Key? key,
}) =>
    ConstrainedBox(
      key: key,
      child: this,
      constraints: BoxConstraints.tightFor(width: size, height: size),
    );