ElFlutterUtil class
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 Methods
-
calcConstraintsSize(
Size size, BoxConstraints constraints) → Size - 计算限制后的元素尺寸,返回类似于自适应大小的图片尺寸
-
closeResampling(
{bool? globalResampling, int delayClose = 1000}) → void - 关闭重采样
-
enabledResampling(
{bool? globalResampling, Duration? samplingBuilder(double fps) = _samplingBuilder}) → void - 开启触摸重采样,仅支持高刷屏幕移动端
-
getCurrentView(
[BuildContext? context]) → FlutterView? - 访问当前视图,如果不传递 context,则访问全局实例中的第一个视图, 若传递 context,则返回目标 context 所在的视图
-
getFps(
[BuildContext? context]) → double? - 获取当前视图所在显示器的 fps 帧率
-
hideKeyboard(
) → Future< void> - 隐藏手机软键盘但保留焦点
-
refreshApp(
) → void - 刷新整个应用,其效果相当于热重载
-
showKeyboard(
) → Future< void> - 显示手机软键盘
-
unFocus(
) → Future< void> - 隐藏手机软键盘并失去焦点