WidgetUtil class

Widget Util.

Constructors

WidgetUtil()

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

asyncPrepare(BuildContext context, bool isOnce, ValueChanged<Rect>? onCallBack) → void
Widget rendering listener. Widget渲染监听. context: Widget context. isOnce: true,Continuous monitoring false,Listen only once. onCallBack: Widget Rect CallBack.
asyncPrepares(bool isOnce, ValueChanged<Rect>? onCallBack) → void
Widget渲染监听.
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 Methods

getImageWH({Image? image, String? url, String? localUrl, String? package, ImageConfiguration? configuration}) Future<Rect>
Suggest use ImageUtil instead.
getImageWHE({Image? image, String? url, String? localUrl, String? package, ImageConfiguration? configuration}) Future<Rect>
Suggest use ImageUtil instead.
getRenderBox(BuildContext context) RenderBox?
getWidgetBounds(BuildContext context) Rect
get Widget Bounds (width, height, left, top, right, bottom and so on).Widgets must be rendered completely. 获取widget Rect
getWidgetLocalToGlobal(BuildContext context) Offset
Get the coordinates of the widget on the screen.Widgets must be rendered completely. 获取widget在屏幕上的坐标,widget必须渲染完成