浏览代码

fix form.cs

/siyaoH-1.17-PlatformMessage
guanghuispark 4 年前
当前提交
4694e368
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 8
      com.unity.uiwidgets/Runtime/widgets/form.cs

8
com.unity.uiwidgets/Runtime/widgets/form.cs


}
public static FormState of(BuildContext context) {
_FormScope scope = (_FormScope) context.inheritFromWidgetOfExactType(typeof(_FormScope));
_FormScope scope = context.dependOnInheritedWidgetOfExactType<_FormScope>();
return scope?._formState;
}

public bool hasError {
get { return _errorText != null; }
}
/*public bool isValid {
get {
return widget.validator?.call(_value) == null;
}
}*/
public void save() {
if (widget.onSaved != null) {

正在加载...
取消
保存