NumScaleExtension extension

Extension on num to provide easy scaling utilities for responsive UI.

on

Methods

s(BuildContext context) double

Available on num, provided by the NumScaleExtension extension

Short alias for scale. Scales based on screen width.
sb(BuildContext context) double

Available on num, provided by the NumScaleExtension extension

Short alias for scaleBoth. Scales based on both width and height.
scale(BuildContext context) double

Available on num, provided by the NumScaleExtension extension

Scales the number based on screen width using the context's scale method.
scaleBoth(BuildContext context) double

Available on num, provided by the NumScaleExtension extension

Scales the number based on both screen width and height using scaleBoth.