Skip to content

The size of the widget is different before and after the capture. #193

@xpwmaosldk

Description

@xpwmaosldk

Before the capture, the rectangle only covers up to 'n' of the invoice, but when looking at the captured image, it covers up to 'v'.
Here's a snippet of my code:

await _screenshotController.captureFromWidget(
  Container(
    decoration: BoxDecoration(
    border: Border.all(color: Colors.red),
    color: Colors.amber,
    ),
    child: targetWidget,
  ),
);

Is there something I'm doing wrong?

original:
스크린샷 2024-07-11 오전 10 16 16

captured:
스크린샷 2024-07-11 오전 10 16 32

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