SizeExtension extension
Provides extension methods for adapting sizes based on screen dimensions.
- on
Methods
-
ah(
num max, BuildContext context) → double -
Available on num, provided by the SizeExtension extension
Linearly interpolates from this value tomaxbased on the current screen height relative to the design height range. -
aw(
num max, BuildContext context) → double -
Available on num, provided by the SizeExtension extension
Linearly interpolates from this value tomaxbased on the current screen width relative to the design width range. -
h(
BuildContext context) → double -
Available on num, provided by the SizeExtension extension
Calculates height based on a percentage of the screen height using context. -
rh(
BuildContext context) → double -
Available on num, provided by the SizeExtension extension
Calculates responsive height using context. -
rw(
BuildContext context) → double -
Available on num, provided by the SizeExtension extension
Calculates responsive width using context. -
w(
BuildContext context) → double -
Available on num, provided by the SizeExtension extension
Calculates width based on a percentage of the screen width using context.