I think this code is a waste of time:
gary@gk-17:~/StudioProjects/flutter_bluetooth$ flutter pub get Resolving dependencies... (1.3s) The current Dart SDK version is 3.0.2.
Because flutter_bluetooth_serial 0.2.2 doesn't support null safety and no versions of flutter_bluetooth_serial match >0.2.2 <0.3.0, flutter_bluetooth_serial ^0.2.2 is forbidden. So, because flutter_bluetooth depends on flutter_bluetooth_serial ^0.2.2, version solving failed.
The lower bound of "sdk: '>=2.0.0-a <3.0.0'" must be 2.12.0 or higher to enable null safety. For details, see https://dart.dev/null-safety
Hi, worked for a few hours migrating to null safe Dart code but still could not get it to work on an iOS device with infoplist settings correct and signing the app. Got it to build and run on my iPhone 14 but gave up when nothing worked on the UI.