ScreenScaler class

A package to scale your widgets according to the screen size with the use of percentages.

Constructors

ScreenScaler()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBorderRadiusCircular(double radius) BorderRadius
Returns the dynamic border radius size for the radius percentage provided.
getBorderRadiusCircularByHeight(double radius) BorderRadius
Returns the dynamic border radius size for the radius height percentage provided.
getBorderRadiusCircularByWidth(double radius) BorderRadius
Returns the dynamic border radius size for the radius width percentage provided.
getBorderRadiusCircularLR(double topLeft, double topRight, double bottomLeft, double bottomRight) BorderRadius
Returns the dynamic border radius size for the topLeft, topRigt, bottomLeft & bottomRight percentages provided.
getFullScreen(double percentage) double
Returns the dynamic size for the percentage provided.
getHeight(double? percentage) double
Returns the height equivalent of the percentage provided.
getMargin(double height, double width) EdgeInsetsGeometry
Returns the dynamic margin size for the height and width percentages provided.
getMarginAll(double percentage) EdgeInsetsGeometry
Returns the dynamic margin size for the percentage provided.
getMarginByHeight(double height) EdgeInsetsGeometry
Returns the dynamic margin size for the height percentage provided.
getMarginByWidth(double width) EdgeInsetsGeometry
Returns the dynamic margin size for the width percentage provided.
getMarginLTRB(double left, double top, double right, double bottom) EdgeInsetsGeometry
Returns the dynamic margin sizes for the left, top, right, bottom percentages provided.
getPadding(double height, double width) EdgeInsetsGeometry
Returns the dynamic padding sizes for the height and width percentages provided.
getPaddingAll(double all) EdgeInsetsGeometry
Returns the dynamic padding size for the percentage provided.
getPaddingByHeight(double height) EdgeInsetsGeometry
Returns the dynamic padding sizes for the height percentage provided.
getPaddingByWidth(double width) EdgeInsetsGeometry
Returns the dynamic padding sizes for the width percentage provided.
getPaddingLTRB(double left, double top, double right, double bottom) EdgeInsetsGeometry
Returns the dynamic padding size for the left, top, right, bottom percentages provided.
getTextSize(double? percentage) double
Returns the text size for the percentage provided.
getWidth(double? percentage) double
Returns the width equivalent of the percentage provided.
init(BuildContext context) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited