flutter_device_preview icon indicating copy to clipboard operation
flutter_device_preview copied to clipboard

isFrameVisible for DevicePreviewData not working

Open juanmanjarres opened this issue 2 years ago • 2 comments

Hi, I'm using the package mainly for automating screenshots, I already specified everything and it seems to be working well, but I tried to specify the data parameter on the constructor for DevicePreview so that I can hide the device frame, but it doesn't seem to have any effect. Any ideas?

Here is the snippet of the constructor:

  runApp(DevicePreview(
      enabled: !kReleaseMode,
      availableLocales: S.delegate.supportedLocales,
      data: const DevicePreviewData(
        isFrameVisible: false
      ),
      tools: [
        ...DevicePreview.defaultTools,
        DevicePreviewScreenshot(
          onScreenshot: screenshotAsFiles(Directory('/storage/emulated/0/screenshots')),
          multipleScreenshots: true,
        ),
      ],
      builder: (context) => App()));

juanmanjarres avatar Aug 29 '22 23:08 juanmanjarres

hey bro i have the same problem plllllz fix it !!! O _ O

alisinaee avatar Nov 15 '22 07:11 alisinaee

this happens for me too, did you find any fix? @juanmanjarres

LaxmikanthMadhyastha avatar May 26 '23 08:05 LaxmikanthMadhyastha