h2 method

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

SizedBox widget with 2% height of the MediaQuery height

Implementation

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