amoLink / bluetooth_print_plus

A flutter plugin for bluetooth thermal printer support Android & iOS
MIT License
12 stars 4 forks source link

Incomplete Web Support #32

Closed charden-daxicen closed 2 weeks ago

charden-daxicen commented 2 weeks ago

The package is labelled to Support Web. But am getting this error when trying to run for the web

org-dartlang-app:/web_plugin_registrant.dart:9:8: Error: Error when reading '../../../../../../.pub-cache/hosted/pub.dev/bluetooth_print_plus-2.3.4/lib/bluetooth_print_plus_web.dart': No such file or directory
import 'package:bluetooth_print_plus/bluetooth_print_plus_web.dart';
       ^
org-dartlang-app:/web_plugin_registrant.dart:22:3: Error: Undefined name 'BluetoothPrintPlusWeb'.
  BluetoothPrintPlusWeb.registerWith(registrar);
  ^^^^^^^^^^^^^^^^^^^^^
Failed to compile application.

My Environment Flutter Version: 3.24.3
Dart Version: 3.5.3

amoLink commented 2 weeks ago

Only supports iOS and Android

charden-daxicen commented 2 weeks ago

Currently you get build errors by just including it on dependencies. Even if you have not refered the library in your dart code you get errors when trying to build for the web.

Can it be in such a way the developer can include it without getting build errors for web. When using it the developer will be responsible to activate the feature on Android and iOS only