h10 method

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

Creates a SizedBox widget with a specific height of 10% of the MediaQuery height.

Example:

SomeWidget().h10(context)

Implementation

Widget h10(BuildContext context, {Key? key}) => SizedBox(
      key: key,
      height: context.screenHeightInPercentage * 10,
      child: this,
    );