We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4741bad commit ead653aCopy full SHA for ead653a
packages/flutter_reactive_ble/lib/src/reactive_ble.dart
@@ -1,6 +1,7 @@
1
import 'dart:async';
2
import 'dart:io';
3
4
+import 'package:flutter/foundation.dart' show kIsWeb;
5
import 'package:flutter_reactive_ble/src/connected_device_operation.dart';
6
import 'package:flutter_reactive_ble/src/debug_logger.dart';
7
import 'package:flutter_reactive_ble/src/device_connector.dart';
@@ -116,7 +117,7 @@ class FlutterReactiveBle {
116
117
);
118
_deviceScanner = DeviceScannerImpl(
119
blePlatform: _blePlatform,
- platformIsAndroid: () => Platform.isAndroid,
120
+ platformIsAndroid: () => !kIsWeb && Platform.isAndroid,
121
delayAfterScanCompletion: Future<void>.delayed(
122
const Duration(milliseconds: 300),
123
),
0 commit comments