Showing
9 changed files
with
9 additions
and
9 deletions
| @@ -4,7 +4,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | @@ -4,7 +4,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | ||
| 4 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; | 4 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; |
| 5 | 5 | ||
| 6 | class BarcodeListScannerWithController extends StatefulWidget { | 6 | class BarcodeListScannerWithController extends StatefulWidget { |
| 7 | - const BarcodeListScannerWithController({Key? key}) : super(key: key); | 7 | + const BarcodeListScannerWithController({super.key}); |
| 8 | 8 | ||
| 9 | @override | 9 | @override |
| 10 | State<BarcodeListScannerWithController> createState() => | 10 | State<BarcodeListScannerWithController> createState() => |
| @@ -4,7 +4,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | @@ -4,7 +4,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | ||
| 4 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; | 4 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; |
| 5 | 5 | ||
| 6 | class BarcodeScannerWithController extends StatefulWidget { | 6 | class BarcodeScannerWithController extends StatefulWidget { |
| 7 | - const BarcodeScannerWithController({Key? key}) : super(key: key); | 7 | + const BarcodeScannerWithController({super.key}); |
| 8 | 8 | ||
| 9 | @override | 9 | @override |
| 10 | State<BarcodeScannerWithController> createState() => | 10 | State<BarcodeScannerWithController> createState() => |
| @@ -3,7 +3,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | @@ -3,7 +3,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | ||
| 3 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; | 3 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; |
| 4 | 4 | ||
| 5 | class BarcodeScannerPageView extends StatefulWidget { | 5 | class BarcodeScannerPageView extends StatefulWidget { |
| 6 | - const BarcodeScannerPageView({Key? key}) : super(key: key); | 6 | + const BarcodeScannerPageView({super.key}); |
| 7 | 7 | ||
| 8 | @override | 8 | @override |
| 9 | State<BarcodeScannerPageView> createState() => _BarcodeScannerPageViewState(); | 9 | State<BarcodeScannerPageView> createState() => _BarcodeScannerPageViewState(); |
| @@ -5,7 +5,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | @@ -5,7 +5,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | ||
| 5 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; | 5 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; |
| 6 | 6 | ||
| 7 | class BarcodeScannerReturningImage extends StatefulWidget { | 7 | class BarcodeScannerReturningImage extends StatefulWidget { |
| 8 | - const BarcodeScannerReturningImage({Key? key}) : super(key: key); | 8 | + const BarcodeScannerReturningImage({super.key}); |
| 9 | 9 | ||
| 10 | @override | 10 | @override |
| 11 | State<BarcodeScannerReturningImage> createState() => | 11 | State<BarcodeScannerReturningImage> createState() => |
| @@ -6,7 +6,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | @@ -6,7 +6,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | ||
| 6 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; | 6 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; |
| 7 | 7 | ||
| 8 | class BarcodeScannerWithScanWindow extends StatefulWidget { | 8 | class BarcodeScannerWithScanWindow extends StatefulWidget { |
| 9 | - const BarcodeScannerWithScanWindow({Key? key}) : super(key: key); | 9 | + const BarcodeScannerWithScanWindow({super.key}); |
| 10 | 10 | ||
| 11 | @override | 11 | @override |
| 12 | State<BarcodeScannerWithScanWindow> createState() => | 12 | State<BarcodeScannerWithScanWindow> createState() => |
| @@ -3,7 +3,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | @@ -3,7 +3,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | ||
| 3 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; | 3 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; |
| 4 | 4 | ||
| 5 | class BarcodeScannerWithoutController extends StatefulWidget { | 5 | class BarcodeScannerWithoutController extends StatefulWidget { |
| 6 | - const BarcodeScannerWithoutController({Key? key}) : super(key: key); | 6 | + const BarcodeScannerWithoutController({super.key}); |
| 7 | 7 | ||
| 8 | @override | 8 | @override |
| 9 | State<BarcodeScannerWithoutController> createState() => | 9 | State<BarcodeScannerWithoutController> createState() => |
| @@ -5,7 +5,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | @@ -5,7 +5,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | ||
| 5 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; | 5 | import 'package:mobile_scanner_example/scanner_error_widget.dart'; |
| 6 | 6 | ||
| 7 | class BarcodeScannerWithZoom extends StatefulWidget { | 7 | class BarcodeScannerWithZoom extends StatefulWidget { |
| 8 | - const BarcodeScannerWithZoom({Key? key}) : super(key: key); | 8 | + const BarcodeScannerWithZoom({super.key}); |
| 9 | 9 | ||
| 10 | @override | 10 | @override |
| 11 | State<BarcodeScannerWithZoom> createState() => _BarcodeScannerWithZoomState(); | 11 | State<BarcodeScannerWithZoom> createState() => _BarcodeScannerWithZoomState(); |
| @@ -11,7 +11,7 @@ import 'package:mobile_scanner_example/mobile_scanner_overlay.dart'; | @@ -11,7 +11,7 @@ import 'package:mobile_scanner_example/mobile_scanner_overlay.dart'; | ||
| 11 | void main() => runApp(const MaterialApp(home: MyHome())); | 11 | void main() => runApp(const MaterialApp(home: MyHome())); |
| 12 | 12 | ||
| 13 | class MyHome extends StatelessWidget { | 13 | class MyHome extends StatelessWidget { |
| 14 | - const MyHome({Key? key}) : super(key: key); | 14 | + const MyHome({super.key}); |
| 15 | 15 | ||
| 16 | @override | 16 | @override |
| 17 | Widget build(BuildContext context) { | 17 | Widget build(BuildContext context) { |
| @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; | @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; | ||
| 2 | import 'package:mobile_scanner/mobile_scanner.dart'; | 2 | import 'package:mobile_scanner/mobile_scanner.dart'; |
| 3 | 3 | ||
| 4 | class ScannerErrorWidget extends StatelessWidget { | 4 | class ScannerErrorWidget extends StatelessWidget { |
| 5 | - const ScannerErrorWidget({Key? key, required this.error}) : super(key: key); | 5 | + const ScannerErrorWidget({super.key, required this.error}); |
| 6 | 6 | ||
| 7 | final MobileScannerException error; | 7 | final MobileScannerException error; |
| 8 | 8 |
-
Please register or login to post a comment