简体   繁体   中英

Convert Cordova Plugin to Flutter Plugin

I'm now converting my Android POS App to use Flutter Framework, my existing App was using Cordova Framework.

For this POS application, I used Cordova Bluetooth Printer Plugin to deal with a portable bluetooth printer as an output printer.

Now, I was trying to find Flutter Plugins that support bluetooth printer. But I didn't find one.

I was thinking to convert the Cordova plugin to Flutter plugin. I want to convert this plugincordova-plugin-datecs-printer

Because, I didn't have much experience in Java.

My Questions, is it possible to convert the Cordova plugin by using the Java functional code that already made in the existing cordova plugin?

Can someone please help me to do it step by step or give me an overview to do the convertion.

Flutter has bluetooth printer plugins that you may want to try: esc_pos_bluetooth and bluetooth_print .

As for converting Cordova plugins to Flutter, this is possible. But since you've mentioned that you have little experience working with platform-specific code ie Android, it might be more feasible to use existing Flutter plugins instead. It is possible though. Here's a guide for developing packages and plugins for Flutter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM