Skip to content

Commit d0bf963

Browse files
authored
Added two properties to set qrWidth e qrHeight
1 parent 2249102 commit d0bf963

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/simple_barcode_scanner.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ class SimpleBarcodeScannerPage extends StatelessWidget {
2525
///center Title
2626
final bool? centerTitle;
2727

28+
/// Only for web app, set qrBox width and height
29+
final int scanWidth;
30+
final int scanHeight;
31+
2832
/// appBatTitle and centerTitle support in web and window only
2933
/// Remaining field support in only mobile devices
3034
const SimpleBarcodeScannerPage({
@@ -35,6 +39,8 @@ class SimpleBarcodeScannerPage extends StatelessWidget {
3539
this.scanType = ScanType.barcode,
3640
this.appBarTitle,
3741
this.centerTitle,
42+
this.scanWidth = 280,
43+
this.scanHeight = 120
3844
}) : super(key: key);
3945

4046
@override

0 commit comments

Comments
 (0)