SizeConfig class

Constructors

SizeConfig(BuildContext context, [bool detectScreen = true, DeviceConfig config = const DeviceConfig(), Size? _requireSize])

Properties

config DeviceConfig
final
context BuildContext
final
detectScreen bool
final
diagonal double
no setter
hashCode int
The hash code for this object.
no setterinherited
height double
no setter
isDesktop bool
no setter
isLaptop bool
no setter
isMobile bool
no setter
isTab bool
no setter
isTV bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenDiagonal double
no setter
screenHeight double
no setter
screenSize Size
final
screenWidth double
no setter
size Size
no setter
width double
no setter

Methods

dividedSize(double totalSize, double dividedLength) double
dividedSpace(double dividedLength) double
dividedSpaceHorizontal(double dividedLength) double
dividedSpaceVertical(double dividedLength) double
dx(double? initialSize, [bool any = true]) double
fontSize(double initialSize) double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
percentageFontSize(double percentage) double
percentageHeight(double percentage) double
percentageSize(double totalSize, double percentageSize) double
percentageSpace(double percentage) double
percentageSpaceHorizontal(double percentage) double
percentageSpaceVertical(double percentage) double
percentageWidth(double percentage) double
pixel(double? initialSize, [bool any = true]) double
pixelPercentage(double percentage) double
px(double? initialSize, [bool any = true]) double
space(double? initialSize) double
spacePercentage(double percentage) double
squire({double percentage = 100}) double
toString() String
A string representation of this object.
inherited
value(double? initialSize, [bool any = true]) double

Operators

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

Static Methods

of(BuildContext context, {bool detectScreen = true, DeviceConfig config = const DeviceConfig(), Size? size}) SizeConfig