Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DavinciCapture.offStage , Uint8List object returned null when built in physic device . #33

Open
XNORGATE opened this issue Sep 22, 2023 · 1 comment

Comments

@XNORGATE
Copy link

XNORGATE commented Sep 22, 2023

Unhandled Exception: type 'Null' is not a subtype of type 'Uint8List'

As the topic says, i got an error when running debug test in physic device(iphone XR , Ios 17)
but it works properly on both iphone 15 and iphone XR simulator (ios 17)

my code

static Future<void> update(context, Widget widget) async {
    Uint8List bytes = await DavinciCapture.offStage(widget,
        context: context,
        returnImageUint8List: true,
        wait: const Duration(seconds: 1),
        openFilePreview: true);
    final directory = await getApplicationSupportDirectory();
    File tempFile =
        File("${directory.path}/${DateTime.now().toIso8601String()}.png");
    await tempFile.writeAsBytes(bytes);

screenshots

iphone 15 Simulator
image

iphone XR Simulator
image

iphone XR physic device
image

Appreciated for developed this awesome pkg.

@Imgkl
Copy link
Owner

Imgkl commented Jan 11, 2024

Hey @XNORGATE

Thanks for using this package.

Can you share the error logs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants