whPCT method

Widget whPCT({
  1. required BuildContext context,
  2. required double widthPCT,
  3. required double heightPCT,
})

SizedBox widget with a specified width & height percentage

Implementation

Widget whPCT(
        {required BuildContext context,
        required double widthPCT,
        required double heightPCT}) =>
    SizedBox(
      key: key,
      width: context.percentWidth * widthPCT,
      height: context.percentHeight * heightPCT,
      child: this,
    );