fix: cap pixelRatio через сравнение вместо .clamp() для типа double

This commit is contained in:
klockky
2026-05-23 04:21:54 +00:00
parent f85cad55ee
commit 0d2c9826be
+2 -1
View File
@@ -1715,7 +1715,8 @@ class _LongPressBubbleState extends State<_LongPressBubble> {
final origin = renderObject.localToGlobal(Offset.zero);
final rect = origin & renderObject.size;
final dpr = MediaQuery.of(ctx).devicePixelRatio.clamp(1.0, 2.0);
final rawDpr = MediaQuery.of(ctx).devicePixelRatio;
final dpr = rawDpr > 2.0 ? 2.0 : rawDpr;
final ui.Image snapshot;
try {