whHalf method

Widget whHalf(
  1. BuildContext context, {
  2. Key? key,
})

Creates a SizedBox widget with a width and height of 50.

Example:

SomeWidget().whHalf(context)

Implementation

Widget whHalf(BuildContext context, {Key? key}) => SizedBox(
      key: key,
      width: context.screenWidthInPercentage * 50,
      height: context.screenHeightInPercentage * 50,
      child: this,
    );