Scrizer class
The core Scrizer class responsible for initializing and holding screen dimensions, orientation, device type, and responsive utilities.
Constructors
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
-
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
Static Properties
- deviceType → DeviceType
-
no setter
- mediaQuery → MediaQueryData
-
no setter
- orientation → Orientation
-
no setter
- scale → ScrizerScaler
-
no setter
- screenHeight → double
-
no setter
- screenWidth → double
-
Getters to access screen dimensions, orientation, and utilities
no setter
- typography → ScrizerTypography
-
no setter
Static Methods
-
build(
BuildContext context, BoxConstraints constraints) → void - Updates Scrizer values during layout rebuild using layout constraints Called inside LayoutBuilder for dynamic adaptation (e.g. window resize)
-
fontSize(
double fontSize) → double - Scales a font size using the responsive typography system
-
initialize(
BuildContext context) → void -
Initializes layout data from the
MediaQuery
context Should be called once early in the widget tree (e.g. in ScrizerLayout)