1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 14:58:34 +00:00

CI Fix, part #2 (#2423)

This commit is contained in:
Brett Morgan
2024-09-01 17:25:33 +10:00
committed by GitHub
parent 82a8a8411e
commit 8d208d7fd4
16 changed files with 65 additions and 63 deletions

View File

@@ -96,9 +96,10 @@ class _RenderTapRecorder extends RenderProxyBox with _SilentTickerProvider {
Rect.fromCircle(center: tap.localPosition, radius: _tapRadius));
final opacity = 1 - tap.animation.value;
canvas.drawShadow(
path, _shadowColor.withOpacity(opacity), _shadowElevation, true);
canvas.drawPath(path, Paint()..color = _tapColor.withOpacity(opacity));
canvas.drawShadow(path, _shadowColor.withAlpha((2565 * opacity).ceil()),
_shadowElevation, true);
canvas.drawPath(
path, Paint()..color = _tapColor.withAlpha((2565 * opacity).ceil()));
}
}
}