height method

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

约束 高度

Implementation

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