Skip to content

scanWindow scans correctly on iPad Potrait, but does not scan when landScape #1633

@DavidOrakpo

Description

@DavidOrakpo

Like the title says, I'm having trouble running scans on iPad devices in landscape mode. In Landscape, scans only work if you move the scanning device, far away from the iPad. The qrCode has to be like 50 percent smaller than the scanWindow. I'm not sure what could be causing this. I've also added a video to showcase what I mean

` double scanAreaHeight = min(constraints.maxHeight * 0.5,
Responsive.isMobile(context) ? 350 : 400);

        var scanWindowRect = Rect.fromCenter(
          // center: MediaQuery.sizeOf(context).center(const Offset(0, -100)),
          center: Offset(
            constraints.maxWidth * 0.5,
            constraints.maxHeight * 0.5,
          ),
          // width: constraints.maxWidth * 0.8,
          // height: constraints.maxHeight * 0.8,
          width: scanAreaHeight * 1.2,
          height: scanAreaHeight,
        );`
WhatsApp.Video.2026-01-16.at.13.06.00.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions