w property

double get w

Dynamic width helper to support various screen sizes.

Example: 100.w -> 100.0 on a 390px screen. Example: 100.w -> 200.0 on a 780px screen.

Implementation

double get w => (toDouble() / FlutterSExtensions.designWidth) * screenWidth;