getPartialWidth static method

double getPartialWidth(
  1. BuildContext context, {
  2. double percentOf = 1,
})

Get percentage of screen height as DPI

Implementation

static double getPartialWidth(BuildContext context, {double percentOf = 1}) {
  return (MediaQuery.of(context).size.width * percentOf);
}