INNER CODE UNIT · Dart
imageSize
SachinGanesh/screenshot · lib/screenshot.dart:153
Size imageSize = targetSize ?? view.physicalSize; // Adapted
assert(logicalSize.aspectRatio.toStringAsPrecision(5) ==
imageSize.aspectRatio
.toStringAsPrecision(5)); // Adapted (toPrecision was not available)
final RenderView renderView = RenderView(
view: view,
child: RenderPositionedBox(
alignment: Alignment.center, child: repaintBoundary),
configuration: ViewConfiguration(
// size: logicalSize,
logicalConstraints: BoxConstraints(
maxWidth: logicalSize.width,
maxHeight: logicalSize.height,
),
devicePixelRatio: pixelRatio ?? 1.0,
),