fractionallySized method

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

A widget that sizes its child to a fraction of the total available space.

Implementation

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