File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,5 @@ class PackageConstant {
44 static const barcodeFileWebPath =
55 "assets/packages/simple_barcode_scanner/assets/barcode.html" ;
66}
7+
8+ String kScanPageTitle = 'Scan barcode/qrcode' ;
Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ class BarcodeScanner extends StatelessWidget {
4646 .registerViewFactory (createdViewId, (int viewId) => iframe);
4747
4848 return Scaffold (
49+ appBar: AppBar (
50+ title: Text (kScanPageTitle),
51+ ),
4952 body: HtmlElementView (
5053 viewType: createdViewId,
5154 ),
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ class WindowBarcodeScanner extends StatelessWidget {
2626 WebviewController controller = WebviewController ();
2727 bool isPermissionGranted = false ;
2828 return Scaffold (
29- appBar: AppBar (),
29+ appBar: AppBar (
30+ title: Text (kScanPageTitle),
31+ ),
3032 body: FutureBuilder <bool >(
3133 future: initPlatformState (
3234 controller: controller,
You can’t perform that action at this time.
0 commit comments