浏览代码

bug fixes (material 1)

/siyaoH-1.17-PlatformMessage
xingweizhu 4 年前
当前提交
af7e6ec7
共有 5 个文件被更改,包括 60 次插入58 次删除
  1. 54
      com.unity.uiwidgets/Runtime/material/input_decorator.cs
  2. 54
      com.unity.uiwidgets/Runtime/material/slider_theme.cs
  3. 6
      com.unity.uiwidgets/Runtime/material/snack_bar_theme.cs
  4. 1
      com.unity.uiwidgets/Runtime/material/text_theme.cs
  5. 3
      com.unity.uiwidgets/Runtime/widgets/implicit_animations.cs

54
com.unity.uiwidgets/Runtime/material/input_decorator.cs


public override int GetHashCode() {
unchecked {
var hashCode = labelStyle.GetHashCode();
hashCode = (hashCode * 397) ^ helperStyle.GetHashCode();
hashCode = (hashCode * 397) ^ helperMaxLines.GetHashCode();
hashCode = (hashCode * 397) ^ hintStyle.GetHashCode();
hashCode = (hashCode * 397) ^ errorStyle.GetHashCode();
hashCode = (hashCode * 397) ^ errorMaxLines.GetHashCode();
hashCode = (hashCode * 397) ^ hasFloatingPlaceholder.GetHashCode();
hashCode = (hashCode * 397) ^ floatingLabelBehavior.GetHashCode();
hashCode = (hashCode * 397) ^ isDense.GetHashCode();
hashCode = (hashCode * 397) ^ contentPadding.GetHashCode();
hashCode = (hashCode * 397) ^ isCollapsed.GetHashCode();
hashCode = (hashCode * 397) ^ filled.GetHashCode();
hashCode = (hashCode * 397) ^ fillColor.GetHashCode();
hashCode = (hashCode * 397) ^ focusColor.GetHashCode();
hashCode = (hashCode * 397) ^ hoverColor.GetHashCode();
hashCode = (hashCode * 397) ^ border.GetHashCode();
hashCode = (hashCode * 397) ^ prefixStyle.GetHashCode();
hashCode = (hashCode * 397) ^ suffixStyle.GetHashCode();
hashCode = (hashCode * 397) ^ counterStyle.GetHashCode();
hashCode = (hashCode * 397) ^ filled.GetHashCode();
hashCode = (hashCode * 397) ^ fillColor.GetHashCode();
hashCode = (hashCode * 397) ^ errorBorder.GetHashCode();
hashCode = (hashCode * 397) ^ focusedBorder.GetHashCode();
hashCode = (hashCode * 397) ^ focusedErrorBorder.GetHashCode();
hashCode = (hashCode * 397) ^ disabledBorder.GetHashCode();
hashCode = (hashCode * 397) ^ enabledBorder.GetHashCode();
hashCode = (hashCode * 397) ^ border.GetHashCode();
var hashCode = labelStyle?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ helperStyle?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ helperMaxLines?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ hintStyle?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ errorStyle?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ errorMaxLines?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ hasFloatingPlaceholder?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ floatingLabelBehavior?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ isDense?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ contentPadding?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ isCollapsed?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ filled?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ fillColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ focusColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ hoverColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ border?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ prefixStyle?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ suffixStyle?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ counterStyle?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ filled?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ fillColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ errorBorder?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ focusedBorder?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ focusedErrorBorder?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ disabledBorder?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ enabledBorder?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ border?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ alignLabelWithHint.GetHashCode();
return hashCode;
}

54
com.unity.uiwidgets/Runtime/material/slider_theme.cs


}
unchecked {
var hashCode = trackHeight.GetHashCode();
hashCode = (hashCode * 397) ^ activeTrackColor.GetHashCode();
hashCode = (hashCode * 397) ^ inactiveTrackColor.GetHashCode();
hashCode = (hashCode * 397) ^ disabledActiveTrackColor.GetHashCode();
hashCode = (hashCode * 397) ^ disabledInactiveTrackColor.GetHashCode();
hashCode = (hashCode * 397) ^ activeTickMarkColor.GetHashCode();
hashCode = (hashCode * 397) ^ inactiveTickMarkColor.GetHashCode();
hashCode = (hashCode * 397) ^ disabledActiveTickMarkColor.GetHashCode();
hashCode = (hashCode * 397) ^ disabledInactiveTickMarkColor.GetHashCode();
hashCode = (hashCode * 397) ^ thumbColor.GetHashCode();
hashCode = (hashCode * 397) ^ overlappingShapeStrokeColor.GetHashCode();
hashCode = (hashCode * 397) ^ disabledThumbColor.GetHashCode();
hashCode = (hashCode * 397) ^ overlayColor.GetHashCode();
hashCode = (hashCode * 397) ^ valueIndicatorColor.GetHashCode();
hashCode = (hashCode * 397) ^ overlayShape.GetHashCode();
hashCode = (hashCode * 397) ^ tickMarkShape.GetHashCode();
hashCode = (hashCode * 397) ^ thumbShape.GetHashCode();
hashCode = (hashCode * 397) ^ trackShape.GetHashCode();
hashCode = (hashCode * 397) ^ rangeTickMarkShape.GetHashCode();
hashCode = (hashCode * 397) ^ rangeThumbShape.GetHashCode();
hashCode = (hashCode * 397) ^ rangeTrackShape.GetHashCode();
hashCode = (hashCode * 397) ^ rangeValueIndicatorShape.GetHashCode();
hashCode = (hashCode * 397) ^ valueIndicatorShape.GetHashCode();
hashCode = (hashCode * 397) ^ showValueIndicator.GetHashCode();
hashCode = (hashCode * 397) ^ valueIndicatorTextStyle.GetHashCode();
hashCode = (hashCode * 397) ^ minThumbSeparation.GetHashCode();
hashCode = (hashCode * 397) ^ thumbSelector.GetHashCode();
var hashCode = trackHeight?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ activeTrackColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ inactiveTrackColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ disabledActiveTrackColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ disabledInactiveTrackColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ activeTickMarkColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ inactiveTickMarkColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ disabledActiveTickMarkColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ disabledInactiveTickMarkColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ thumbColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ overlappingShapeStrokeColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ disabledThumbColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ overlayColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ valueIndicatorColor?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ overlayShape?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ tickMarkShape?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ thumbShape?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ trackShape?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ rangeTickMarkShape?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ rangeThumbShape?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ rangeTrackShape?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ rangeValueIndicatorShape?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ valueIndicatorShape?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ showValueIndicator?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ valueIndicatorTextStyle?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ minThumbSeparation?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ thumbSelector?.GetHashCode() ?? 0;
_cachedHashCode = hashCode;
return hashCode;

6
com.unity.uiwidgets/Runtime/material/snack_bar_theme.cs


}
public static bool operator !=(SnackBarThemeData self, SnackBarThemeData other) {
return Equals(self, other);
return !Equals(self, other);
}
public bool Equals(SnackBarThemeData other) {

hashCode = (hashCode * 397) ^
(disabledActionTextColor != null ? disabledActionTextColor.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (contentTextStyle != null ? contentTextStyle.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ elevation.GetHashCode();
hashCode = (hashCode * 397) ^ elevation?.GetHashCode() ?? 0;
hashCode = (hashCode * 397) ^ (int) behavior;
hashCode = (hashCode * 397) ^ behavior?.GetHashCode() ?? 0;
return hashCode;
}
}

1
com.unity.uiwidgets/Runtime/material/text_theme.cs


TextStyle headline = null,
TextStyle title = null,
TextStyle subhead = null,
TextStyle subtitle= null,
TextStyle body2 = null,
TextStyle body1 = null
) {

3
com.unity.uiwidgets/Runtime/widgets/implicit_animations.cs


TimeSpan? duration = null,
VoidCallback onEnd = null
) : base(key: key, curve: curve ?? Curves.linear, duration: duration, onEnd: onEnd) {
overflow = overflow ?? TextOverflow.clip;
D.assert(duration != null);
D.assert(style != null);
D.assert(child != null);

this.style = style;
this.textAlign = textAlign;
this.softWrap = softWrap;
this.overflow = overflow ?? TextOverflow.clip;
this.overflow = overflow.Value;
this.maxLines = maxLines;
this.textHeightBehavior = textHeightBehavior;
this.textWidthBasis = textWidthBasis;

正在加载...
取消
保存