w method
Returns this% of screen width.
Example:
20.w(context); // 20% of screen width
Implementation
double w(BuildContext context) =>
(this / 100) * MediaQuery.of(context).size.width;
Returns this% of screen width.
Example:
20.w(context); // 20% of screen width
double w(BuildContext context) =>
(this / 100) * MediaQuery.of(context).size.width;