Skip to content

Commit 2aafb91

Browse files
authored
Added properties only to standardize the implementation of the BarcodeScanner class
1 parent 9590571 commit 2aafb91

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/screens/io_device.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ class BarcodeScanner extends StatelessWidget {
1414
final Function(String) onScanned;
1515
final String? appBarTitle;
1616
final bool? centerTitle;
17+
/// Properties only added to standardize the implementation of the BarcodeScanner class
18+
final int scanWidth;
19+
final int scanHeight;
20+
1721
const BarcodeScanner({
1822
Key? key,
1923
required this.lineColor,
@@ -23,6 +27,8 @@ class BarcodeScanner extends StatelessWidget {
2327
required this.onScanned,
2428
this.appBarTitle,
2529
this.centerTitle,
30+
this.scanWidth = 0,
31+
this.scanHeight = 0
2632
}) : super(key: key);
2733

2834
@override

0 commit comments

Comments
 (0)