refactor: revert autoStart and onDetect. See changelog for more
Showing
2 changed files
with
1 additions
and
4 deletions
| 1 | -import 'dart:async'; | ||
| 2 | - | ||
| 3 | import 'package:flutter/material.dart'; | 1 | import 'package:flutter/material.dart'; |
| 4 | import 'package:mobile_scanner/mobile_scanner.dart'; | 2 | import 'package:mobile_scanner/mobile_scanner.dart'; |
| 5 | -import 'package:mobile_scanner_example/scanner_button_widgets.dart'; | ||
| 6 | -import 'package:mobile_scanner_example/scanner_error_widget.dart'; | ||
| 7 | 3 | ||
| 8 | class BarcodeScannerSimple extends StatefulWidget { | 4 | class BarcodeScannerSimple extends StatefulWidget { |
| 9 | const BarcodeScannerSimple({super.key}); | 5 | const BarcodeScannerSimple({super.key}); |
| @@ -120,6 +120,7 @@ class MobileScanner extends StatefulWidget { | @@ -120,6 +120,7 @@ class MobileScanner extends StatefulWidget { | ||
| 120 | 120 | ||
| 121 | class _MobileScannerState extends State<MobileScanner> { | 121 | class _MobileScannerState extends State<MobileScanner> { |
| 122 | late final controller = widget.controller ?? MobileScannerController(); | 122 | late final controller = widget.controller ?? MobileScannerController(); |
| 123 | + | ||
| 123 | /// The current scan window. | 124 | /// The current scan window. |
| 124 | Rect? scanWindow; | 125 | Rect? scanWindow; |
| 125 | 126 |
-
Please register or login to post a comment