TUIKitScreenUtils class

Constructors

TUIKitScreenUtils()

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?
getter/setter pair

Static Methods

getDeviceWidget({BuildContext? context, required Widget defaultWidget, Widget? desktopWidget, Widget? mobileWidget}) Widget
getFormFactor([BuildContext? context]) DeviceType
Although specifying the BuildContext is optional, providing it can prevent layout issues when this widget renders immediately after the app launch. If this widget needs to be used at the moment the app launches, it's recommended to provide the BuildContext here.