Home > other >  Can a Flutter package only for phone, be used to a Windows app as well?
Can a Flutter package only for phone, be used to a Windows app as well?

Time:08-11

I am building an Android Application with Flutter & Dart and i am using the "barcode_finder" package.(https://pub.dev/packages/barcode_finder)

To be more precise, i want my app to scan a barcode.pdf (barcode on top of a pdf file) file and extract the info of the barcode.

When i am deploying the app on my phone, the application shows the (result) barcode info. But when i deploy it on my Windows computer, it can't find the result.

CodePudding user response:

The package you are using does not have support for Windows applications. Try out this dependency; https://pub.dev/packages/barcode

CodePudding user response:

No, there is no way to use that package on Windows as-is. It is a plugin package, which means that unlike most Flutter packages it contains native, platform-specific code for each platform it supports in addition to the cross-platform Dart code.

To make it usable on Windows, someone would have to add a Windows-specific implementation of that native code to the package.

  • Related