whHalf method

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

SizedBox widget with half or 50% width & height of the MediaQuery width & height

Implementation

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