Open Abdulazeezvp opened 2 years ago
I have also this issue.
If you see this i have already find a solution
==========================
on this _startPrint() Function command + click on (writeBytes) inside this _manager!.writeBytes(data, isDisconnect: false);
and then replace the function like this :
===========================
Future
====================
Rerun the app and thx me later
I have also this issue, You can use the forked code from my profile.
I/flutter ( 3080): capabilities.length is already loaded D/BluetoothSocket( 3080): BT connect calling pid/uid = 3080/10207 W/BluetoothAdapter( 3080): getBluetoothService() called with no BluetoothManagerCallback I/flutter ( 3080): Error : type 'Future<bool?>' is not a subtype of type 'FutureOr' in type cast
[log] connection response message : Success
In Bluetooth printer manager, inside write bytes function this casting, line number 87 getting error.
When I changed those line to this, its working good.
flutter doctor details: Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19043.1586], locale en-IN) [√] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [√] Chrome - develop for the web [!] Visual Studio - develop for Windows (Visual Studio Build Tools 2017 15.9.42) X Visual Studio 2019 or later is required. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components [√] Android Studio (version 2020.3) [√] VS Code (version 1.65.2) [√] Connected device (4 available) [√] HTTP Host Availability