Skip to content

Commit f61608c

Browse files
2 parents dad9410 + 209677f commit f61608c

File tree

9 files changed

+32
-9
lines changed

9 files changed

+32
-9
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
release:
3+
branches:
4+
- master
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Install Flutter
11+
uses: subosito/flutter-action@v2
12+
- name: Install dependencies
13+
run: flutter pub get
14+
- name: Format code
15+
run: dart format --fix .
16+
- name: Publish
17+
uses: k-paxian/[email protected]
18+
with:
19+
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
20+
flutter: true

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,8 @@
2424
## 0.0.5
2525
* added button for web and window
2626
* updated packages
27-
* permission refactored
27+
* permission refactored
28+
29+
## 0.0.6
30+
* Document update
31+
* warning update

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Window | Web
2727
## Getting started
2828

2929
```dart
30-
simple_barcode_scanner: ^0.0.4
30+
simple_barcode_scanner: ^0.0.6
3131
3232
```
3333
Import the library:

example/lib/main.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import 'package:flutter/material.dart';
22
import 'package:simple_barcode_scanner/simple_barcode_scanner.dart';
3-
import 'package:webview_flutter/webview_flutter.dart';
43

54
void main() {
65
runApp(const MyApp());

lib/enum.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
enum ScanType { QR, BARCODE, DEFAULT }
1+
enum ScanType { qr, barcode, defaultMode }

lib/screens/io_device.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ class BarcodeScanner extends StatelessWidget {
4747
/// Scan barcode for mobile devices
4848
ScanMode scanMode;
4949
switch (scanType) {
50-
case ScanType.BARCODE:
50+
case ScanType.barcode:
5151
scanMode = ScanMode.BARCODE;
5252
break;
53-
case ScanType.QR:
53+
case ScanType.qr:
5454
scanMode = ScanMode.QR;
5555
break;
5656
default:

lib/screens/unsupported.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class BarcodeScanner extends StatelessWidget {
1212
this.lineColor = "#ff6666",
1313
this.cancelButtonText = "Cancel",
1414
this.isShowFlashIcon = false,
15-
this.scanType = ScanType.BARCODE,
15+
this.scanType = ScanType.barcode,
1616
required this.onScanned})
1717
: super(key: key);
1818

lib/simple_barcode_scanner.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class SimpleBarcodeScannerPage extends StatelessWidget {
2525
this.lineColor = "#ff6666",
2626
this.cancelButtonText = "Cancel",
2727
this.isShowFlashIcon = false,
28-
this.scanType = ScanType.BARCODE,
28+
this.scanType = ScanType.barcode,
2929
}) : super(key: key);
3030

3131
@override

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: simple_barcode_scanner
22
description: Scanner plugin for Barcode/QR code. Scan using flutter_barcode_scanner for mobile device and html5-qrcode for web and windows
3-
version: 0.0.5
3+
version: 0.0.6
44
homepage: https://github.com/CodingWithTashi/simple_barcode_scanner
55
issue_tracker: https://github.com/CodingWithTashi/simple_barcode_scanner/issues
66

0 commit comments

Comments
 (0)