mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-06 02:30:12 +08:00
@@ -224,17 +224,25 @@ abstract class MarqueeRender extends RenderBox
|
||||
if (_spacing.isNegative) _spacing *= -size.height;
|
||||
}
|
||||
|
||||
final hasTicker = this.hasTicker;
|
||||
if (_distance > 0) {
|
||||
updateSize();
|
||||
_ticker.initIfNeeded(_onTick);
|
||||
markNeedsCompositingBitsUpdate();
|
||||
if (!hasTicker) {
|
||||
markNeedsCompositingBitsUpdate();
|
||||
}
|
||||
} else {
|
||||
_ticker.cancel();
|
||||
if (hasTicker) {
|
||||
markNeedsCompositingBitsUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool get hasTicker => _ticker._ticker != null;
|
||||
|
||||
@override
|
||||
bool get isRepaintBoundary => _ticker._ticker != null;
|
||||
bool get isRepaintBoundary => hasTicker;
|
||||
|
||||
void paintCenter(PaintingContext context, Offset offset) {
|
||||
if (_direction == Axis.horizontal) {
|
||||
|
||||
Reference in New Issue
Block a user