screenWidth method

double screenWidth([
  1. double percent = 1
])

Implementation

double screenWidth([double percent = 1]) =>
    MediaQuery.of(this).size.width * percent;