screenWidth function

double screenWidth(
  1. BuildContext context, {
  2. double fraction = 1.0,
})

Implementation

double screenWidth(BuildContext context, {double fraction = 1.0}) =>
    MediaQuery.of(context).size.width * fraction;