Issue with trying to create a pdf in a custom chord

Troubleshooting

Hi,

I was trying to create a pdf of an order form in flutterflow's custom code, and I was getting an error probably in the plugin settings or in the execution of the native code.

Below is the log information when the error occurred. The logs are output to the console in developer mode when executed in a browser.

---

dart_sdk.js:11914 Uncaught (in promise) Error

at Object.throw_ [as throw] (dart_sdk.js:11914:11)

at MethodChannel._invokeMethod (platform_channel.dart:332:7)

at _invokeMethod.next (<anonymous>)

at dart_sdk.js:49722:33

at RootZone.runUnary (dartsdk.js:49577:59)

at FutureListener.thenAwait.handleValue (dartsdk.js:44704:29)

at handleValueCallback (dart_sdk.js:45304:49)

at Future.propagateToListeners (dart_sdk.js:45342:17)

at [_completeWithValue] (dart_sdk.js:45183:23)

at async._AsyncCallbackEntry.new.callback (dart_sdk.js:45217:35)

at Object._microtaskLoop (dart_sdk.js:50026:13)

at startMicrotaskLoop (dartsdk.js:50032:13)

at dart_sdk.js:45573:9

---

As far as creating pdfs, I know that there is a way to use an external API, but I would like to do it locally using the pdf package as much as possible.

I would appreciate an answer first in terms of whether flutterflow's custom code can make use of the pdf package.

thank you :-)

Environment Description

- FlutterFlow version: v4.1.61

- Flutter version: 3.19.1

- Running Environment: Google Chrome

Pubspec Dependencies: "pdf: any"

What have you tried so far?

no custom code compilation errors have occurred.

The pdf was run with the latest version (pdf: ^3.10.8).

Confirmed that the settings are actually reflected in pubspec.yaml from the View code.

We verified whether this custom code was the cause of this issu

Did you check FlutterFlow's Documentation for this topic?
Yes
2
7 replies