|
|
|
|
|
|
using System; |
|
|
|
using Unity.UIWidgets.animation; |
|
|
|
using Unity.UIWidgets.foundation; |
|
|
|
using Unity.UIWidgets.painting; |
|
|
|
|
|
|
this.minLength * (((inside / viewport) - 0.8f) / 0.2f) |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
float fractionPast = before / (before + after); |
|
|
|
float thumbOffset = (before + after > 0.0) |
|
|
|
? fractionPast * (viewport - thumbExtent - 2 * this.mainAxisMargin) + this.mainAxisMargin |
|
|
|
: this.mainAxisMargin; |
|
|
|
float fractionPast = before / (before + after); |
|
|
|
float thumbOffset = (before + after > 0.0) |
|
|
|
? fractionPast * (viewport - thumbExtent - 2 * this.mainAxisMargin) + this.mainAxisMargin |
|
|
|
: this.mainAxisMargin; |
|
|
|
painter(canvas, size, thumbOffset, thumbExtent); |
|
|
|
painter(canvas, size, thumbOffset, thumbExtent); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public override void dispose() { |
|
|
|