Skip to content

Commit 0d8c552

Browse files
committed
scanbot_sdk 2.6.0 release ✨
1 parent 5e4aa34 commit 0d8c552

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

lib/main.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class _MainPageWidgetState extends State<MainPageWidget> {
149149
children: <Widget>[
150150
TitleItemWidget('Document Scanner'),
151151
MenuItemWidget(
152-
'Scan Document',
152+
'Scan Documents',
153153
onTap: () {
154154
_startDocumentScanning();
155155
},
@@ -181,13 +181,13 @@ class _MainPageWidgetState extends State<MainPageWidget> {
181181
},
182182
),
183183
MenuItemWidget(
184-
'Scan Multiple Barcodes ',
184+
'Scan Multiple Barcodes (batch mode)',
185185
onTap: () {
186186
_startBatchBarcodeScanner();
187187
},
188188
),
189189
MenuItemWidget(
190-
'Detect Barcode image',
190+
'Detect Barcodes from Still Image',
191191
onTap: () {
192192
_detectBarcodeOnImage();
193193
},
@@ -205,7 +205,7 @@ class _MainPageWidgetState extends State<MainPageWidget> {
205205
},
206206
),
207207
MenuItemWidget(
208-
'Scan License plate',
208+
'Scan License Plate',
209209
onTap: () {
210210
startLicensePlateScanner();
211211
},
@@ -226,12 +226,12 @@ class _MainPageWidgetState extends State<MainPageWidget> {
226226
},
227227
),
228228
MenuItemWidget(
229-
'Licenses info',
229+
'3rd-party Libs & Licenses',
230230
startIcon: Icons.developer_mode,
231231
onTap: () {
232232
showLicensePage(
233233
context: context,
234-
applicationName: 'Scanbot SDK example',
234+
applicationName: 'Scanbot SDK Flutter Example',
235235
);
236236
},
237237
),
@@ -334,6 +334,7 @@ class _MainPageWidgetState extends State<MainPageWidget> {
334334
try {
335335
var config = BarcodeScannerConfiguration(
336336
topBarBackgroundColor: Colors.blue,
337+
barcodeFormats: PredefinedBarcodes.allBarcodeTypes(),
337338
finderTextHint:
338339
'Please align any supported barcode in the frame to scan it.',
339340
/* additionalParameters: BarcodeAdditionalParameters(
@@ -357,7 +358,6 @@ class _MainPageWidgetState extends State<MainPageWidget> {
357358
return;
358359
}
359360
try {
360-
//var config = BarcodeScannerConfiguration(); // testing default configs
361361
var config = BatchBarcodeScannerConfiguration(
362362
barcodeFormatter: (item) async {
363363
final random = Random();

lib/ui/barcode_preview.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,6 @@ const barcodeFormatEnumMap = {
127127
BarcodeFormat.RSS_EXPANDED: 'RSS_EXPANDED',
128128
BarcodeFormat.UPC_A: 'UPC_A',
129129
BarcodeFormat.UPC_E: 'UPC_E',
130+
BarcodeFormat.MSI_PLESSEY: 'MSI_PLESSEY',
130131
BarcodeFormat.UNKNOWN: 'UNKNOWN',
131132
};

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.6.0-beta3"
249+
version: "2.6.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.6.0-beta3
25+
scanbot_sdk: 2.6.0
2626
cupertino_icons: ^1.0.2
2727

2828
permission_handler: ^6.0.1

0 commit comments

Comments
 (0)