fractionallySizedBox method

Widget fractionallySizedBox({
  1. Key? key,
  2. AlignmentGeometry alignment = Alignment.center,
  3. double? widthFactor,
  4. double? heightFactor,
})

百分比布局

Implementation

Widget fractionallySizedBox({
  Key? key,
  AlignmentGeometry alignment = Alignment.center,
  double? widthFactor,
  double? heightFactor,
}) =>
    FractionallySizedBox(
      key: key,
      alignment: alignment,
      widthFactor: widthFactor,
      heightFactor: heightFactor,
      child: this,
    );