FittedBoxExtensions extension
- on
Methods
-
fitted(
{BoxFit fit = BoxFit.contain, Alignment alignment = Alignment.center}) → Widget -
Available on Widget, provided by the FittedBoxExtensions extension
Wraps the widget with a FittedBox that adapts to the screen size. -
scaleToHeight(
{required BuildContext context, double factor = 1.0}) → Widget -
Available on Widget, provided by the FittedBoxExtensions extension
Scales the widget proportionally to the screen's height. -
scaleToMaxHeight(
{required BuildContext context, double maxHeight = 800, double factor = 1.0}) → Widget -
Available on Widget, provided by the FittedBoxExtensions extension
Scales the widget conditionally based on a maximum height. -
scaleToMaxWidth(
{required BuildContext context, double maxWidth = 400, double factor = 1.0}) → Widget -
Available on Widget, provided by the FittedBoxExtensions extension
Scales the widget conditionally based on a maximum width. -
scaleToScreen(
{required BuildContext context, double widthFactor = 1.0, double heightFactor = 1.0}) → Widget -
Available on Widget, provided by the FittedBoxExtensions extension
Combines scaling for both width and height. -
scaleToWidth(
{required BuildContext context, double factor = 1.0}) → Widget -
Available on Widget, provided by the FittedBoxExtensions extension
Scales the widget proportionally to the screen's width.