whPCT method
Widget
whPCT({
- required BuildContext context,
- required double widthPCT,
- 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,
);