wh2 method

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

SizedBox widget with 2% width & height of the MediaQuery width & height

Implementation

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