Skip to content

Commit 263c4b7

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/screens/unsupported.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ class BarcodeScanner extends StatelessWidget {
99
final Function(String) onScanned;
1010
final String? appBarTitle;
1111
final bool? centerTitle;
12+
/// Properties only added to standardize the implementation of the BarcodeScanner class
13+
final int scanWidth;
14+
final int scanHeight;
15+
1216
const BarcodeScanner(
1317
{Key? key,
1418
this.lineColor = "#ff6666",
@@ -17,7 +21,9 @@ class BarcodeScanner extends StatelessWidget {
1721
this.scanType = ScanType.barcode,
1822
required this.onScanned,
1923
this.appBarTitle,
20-
this.centerTitle})
24+
this.centerTitle,
25+
this.scanWidth = 0,
26+
this.scanHeight= 0})
2127
: super(key: key);
2228

2329
@override

0 commit comments

Comments
 (0)