fractionalBox method

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

Extension for FractionallySizedBox

Implementation

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