为什么未识别flutterblueserial?

时间:2020-02-26 22:44:20

标签: android ios flutter dart mobile

为什么FlutterBluetoothSerial无法被识别。这是不赞成使用的东西吗?

class _BluetoothAppState extends State<BluetoothApp> {
  // Initializing a global key, as it would help us in showing a SnackBar later
  final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();
  // Get the instance of the bluetooth
  FlutterBluetoothSerial bluetooth = FlutterBluetoothSerial.instance;

  // Define some variables, which will be required later
  List<BluetoothDevice> _devicesList = [];
  BluetoothDevice _device;
  bool _connected = false;
  bool _pressed = false;

0 个答案:

没有答案