hPCT method

Widget hPCT({
  1. required BuildContext context,
  2. required double heightPCT,
})

SizedBox widget with a specified height percentage

Implementation

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