frameRect static method

Rect frameRect(
  1. Size size
)

Where the frame sits, for a viewport of size.

Implementation

static Rect frameRect(Size size) {
  final double width = size.width * 0.70;
  final double height = math.min(width * 1.35, size.height * 0.48);
  return Rect.fromCenter(
    center: Offset(size.width / 2, size.height * 0.42),
    width: width,
    height: height,
  );
}