浏览代码

update more relevant widgets

/siyaoH-1.17-PlatformMessage
xingweizhu 4 年前
当前提交
9d2c2b03
共有 2 个文件被更改,包括 5 次插入6 次删除
  1. 6
      com.unity.uiwidgets/Runtime/widgets/overscroll_indicator.cs
  2. 5
      com.unity.uiwidgets/Runtime/widgets/primary_scroll_controller.cs

6
com.unity.uiwidgets/Runtime/widgets/overscroll_indicator.cs


}
properties.add(new MessageProperty("show", showDescription));
properties.add(new DiagnosticsProperty<Color>("color", color, showName: false));
properties.add(new ColorProperty("color", color, showName: false));
}
}

}
if (notification is OverscrollNotification) {
_GlowController controller;
_GlowController controller = null;
OverscrollNotification _notification = notification as OverscrollNotification;
if (_notification.overscroll < 0.0f) {
controller = _leadingController;

}
else {
throw new Exception("overscroll is 0.0f!");
D.assert(false, () =>"over scroll cannot be 0.0f.");
}
bool isLeading = controller == _leadingController;

5
com.unity.uiwidgets/Runtime/widgets/primary_scroll_controller.cs


public readonly ScrollController controller;
public static ScrollController of(BuildContext context) {
PrimaryScrollController result =
(PrimaryScrollController) context.inheritFromWidgetOfExactType(typeof(PrimaryScrollController));
return result == null ? null : result.controller;
PrimaryScrollController result = context.dependOnInheritedWidgetOfExactType<PrimaryScrollController>();
return result?.controller;
}
public override bool updateShouldNotify(InheritedWidget oldWidget) {

正在加载...
取消
保存