Showing
3 changed files
with
13 additions
and
4 deletions
lib/mobile_scanner_web.dart
deleted
100644 → 0
lib/src/web/mobile_scanner_web.dart
0 → 100644
| 1 | +import 'package:flutter_web_plugins/flutter_web_plugins.dart'; | ||
| 2 | +import 'package:mobile_scanner/src/mobile_scanner_platform_interface.dart'; | ||
| 3 | + | ||
| 4 | +/// A web implementation of the MobileScannerPlatform of the MobileScanner plugin. | ||
| 5 | +class MobileScannerWeb extends MobileScannerPlatform { | ||
| 6 | + /// Constructs a [MobileScannerWeb] instance. | ||
| 7 | + MobileScannerWeb(); | ||
| 8 | + | ||
| 9 | + static void registerWith(Registrar registrar) { | ||
| 10 | + MobileScannerPlatform.instance = MobileScannerWeb(); | ||
| 11 | + } | ||
| 12 | +} |
| @@ -44,4 +44,4 @@ flutter: | @@ -44,4 +44,4 @@ flutter: | ||
| 44 | pluginClass: MobileScannerPlugin | 44 | pluginClass: MobileScannerPlugin |
| 45 | web: | 45 | web: |
| 46 | pluginClass: MobileScannerWebPlugin | 46 | pluginClass: MobileScannerWebPlugin |
| 47 | - fileName: mobile_scanner_web_plugin.dart | 47 | + fileName: web/mobile_scanner_web.dart |
-
Please register or login to post a comment