Skip to content

Commit f43c776

Browse files
authored
Merge pull request #16 from doo/update_example_app
update example app to 2.5.0 flutter sdk
2 parents f468cfe + 2f0b822 commit f43c776

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

lib/main.dart

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,12 @@ class _MainPageWidgetState extends State<MainPageWidget> {
336336
topBarBackgroundColor: Colors.blue,
337337
finderTextHint:
338338
'Please align any supported barcode in the frame to scan it.',
339+
/* additionalParameters: BarcodeAdditionalParameters(
340+
enableGS1Decoding: false,
341+
minimumTextLength: 10,
342+
maximumTextLength: 11,
343+
minimum1DBarcodesQuietZone: 10,
344+
)*/
339345
// ...
340346
);
341347
var result = await ScanbotSdkUi.startBarcodeScanner(config);
@@ -386,7 +392,13 @@ class _MainPageWidgetState extends State<MainPageWidget> {
386392
// flashEnabled: true,
387393
orientationLockMode: CameraOrientationMode.PORTRAIT,
388394
barcodeFormats: PredefinedBarcodes.allBarcodeTypes(),
389-
cancelButtonHidden: false);
395+
cancelButtonHidden: false,
396+
/*additionalParameters: BarcodeAdditionalParameters(
397+
enableGS1Decoding: false,
398+
minimumTextLength: 10,
399+
maximumTextLength: 11,
400+
minimum1DBarcodesQuietZone: 10,
401+
)*/);
390402

391403
final result = await ScanbotSdkUi.startBatchBarcodeScanner(config);
392404
if (result.operationResult == OperationResult.SUCCESS) {
@@ -507,6 +519,12 @@ class _MainPageWidgetState extends State<MainPageWidget> {
507519
final config = BarcodeScannerConfiguration(
508520
barcodeFormats: [BarcodeFormat.QR_CODE],
509521
finderTextHint: 'Please align a QR code in the frame to scan it.',
522+
/* additionalParameters: BarcodeAdditionalParameters(
523+
enableGS1Decoding: false,
524+
minimumTextLength: 10,
525+
maximumTextLength: 11,
526+
minimum1DBarcodesQuietZone: 10,
527+
)*/
510528
// ...
511529
);
512530
final result = await ScanbotSdkUi.startBarcodeScanner(config);

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ packages:
246246
name: scanbot_sdk
247247
url: "https://pub.dartlang.org"
248248
source: hosted
249-
version: "2.4.1"
249+
version: "2.5.0"
250250
shared_preferences:
251251
dependency: "direct main"
252252
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies:
2222
flutter:
2323
sdk: flutter
2424

25-
scanbot_sdk: 2.4.1
25+
scanbot_sdk: 2.5.0
2626
cupertino_icons: ^1.0.2
2727

2828
permission_handler: ^6.0.1

0 commit comments

Comments
 (0)