flutter bluetooth 开发

2019年07月26日 15:58:42

https://www.youtube.com/watch?v=sJv1IPLfYdY

https://github.com/pauldemarco/flutter_blue

检测蓝牙

FlutterBlue.instance.isAvailable.then((bool isAvailable) {
  if (isAvailable) {
    print('bluetooth is available');
  } else {
    print('bluetooth is NOT available, device may be incompatible');
  }
});