11library simple_barcode_scanner;
22
3- export 'package:simple_barcode_scanner/simple_barcode_scanner.dart' ;
43import 'package:flutter/material.dart' ;
54import 'package:simple_barcode_scanner/enum.dart' ;
65import 'package:simple_barcode_scanner/screens/shared.dart' ;
76
7+ export 'package:simple_barcode_scanner/simple_barcode_scanner.dart' ;
8+
89class SimpleBarcodeScannerPage extends StatelessWidget {
910 ///Barcode line color default set to #ff6666
1011 final String lineColor;
@@ -18,14 +19,22 @@ class SimpleBarcodeScannerPage extends StatelessWidget {
1819 ///Enter enum scanType, It can be BARCODE, QR, DEFAULT
1920 final ScanType scanType;
2021
21- ///All param only support for mobile and tab,
22- ///desktop and web is not yet support
22+ ///AppBar Title
23+ final String ? appBarTitle;
24+
25+ ///center Title
26+ final bool ? centerTitle;
27+
28+ /// appBatTitle and centerTitle support in web and window only
29+ /// Remaining field support in only mobile devices
2330 const SimpleBarcodeScannerPage ({
2431 Key ? key,
2532 this .lineColor = "#ff6666" ,
2633 this .cancelButtonText = "Cancel" ,
2734 this .isShowFlashIcon = false ,
2835 this .scanType = ScanType .barcode,
36+ this .appBarTitle,
37+ this .centerTitle,
2938 }) : super (key: key);
3039
3140 @override
@@ -35,6 +44,8 @@ class SimpleBarcodeScannerPage extends StatelessWidget {
3544 cancelButtonText: cancelButtonText,
3645 isShowFlashIcon: isShowFlashIcon,
3746 scanType: scanType,
47+ appBarTitle: appBarTitle,
48+ centerTitle: centerTitle,
3849 onScanned: (res) {
3950 Navigator .pop (context, res);
4051 },
0 commit comments