Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Navaron Bracke
2025-02-03 09:20:58 +0100
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2025-02-03 09:20:58 +0100
Commit
f025852d35e676a3acc775d11a3fe32bc5ec7f45
f025852d
2 parents
90b85e71
9a7cfe69
Merge branch 'master' into roll_zxing_js
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
12 deletions
.github/workflows/flutter.yml
example/lib/barcode_scanner_controller.dart
example/lib/barcode_scanner_listview.dart
example/lib/barcode_scanner_pageview.dart
example/lib/barcode_scanner_returning_image.dart
example/lib/barcode_scanner_simple.dart
example/lib/barcode_scanner_window.dart
example/lib/barcode_scanner_zoom.dart
example/lib/mobile_scanner_overlay.dart
example/lib/scanner_error_widget.dart
.github/workflows/flutter.yml
View file @
f025852
...
...
@@ -36,7 +36,7 @@ jobs:
-
uses
:
subosito/flutter-action@v2.12.0
with
:
cache
:
true
flutter-version
:
'
3.2
2
'
flutter-version
:
'
3.2
4
'
channel
:
'
stable'
-
name
:
Version
run
:
flutter doctor -v
...
...
example/lib/barcode_scanner_controller.dart
View file @
f025852
...
...
@@ -99,7 +99,7 @@ class _BarcodeScannerWithControllerState
child:
Container
(
alignment:
Alignment
.
bottomCenter
,
height:
100
,
color:
Colors
.
black
.
withOpacity
(
0.4
),
color:
const
Color
.
fromRGBO
(
0
,
0
,
0
,
0.4
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
...
...
example/lib/barcode_scanner_listview.dart
View file @
f025852
...
...
@@ -68,7 +68,7 @@ class _BarcodeScannerListViewState extends State<BarcodeScannerListView> {
child:
Container
(
alignment:
Alignment
.
bottomCenter
,
height:
100
,
color:
Colors
.
black
.
withOpacity
(
0.4
),
color:
const
Color
.
fromRGBO
(
0
,
0
,
0
,
0.4
),
child:
Column
(
children:
[
Expanded
(
...
...
example/lib/barcode_scanner_pageview.dart
View file @
f025852
...
...
@@ -78,7 +78,7 @@ class _BarcodeScannerPage extends StatelessWidget {
child:
Container
(
alignment:
Alignment
.
bottomCenter
,
height:
100
,
color:
Colors
.
black
.
withOpacity
(
0.4
),
color:
const
Color
.
fromRGBO
(
0
,
0
,
0
,
0.4
),
child:
Center
(
child:
ScannedBarcodeLabel
(
barcodes:
controller
.
barcodes
),
),
...
...
example/lib/barcode_scanner_returning_image.dart
View file @
f025852
...
...
@@ -97,7 +97,7 @@ class _BarcodeScannerReturningImageState
child:
Container
(
alignment:
Alignment
.
bottomCenter
,
height:
100
,
color:
Colors
.
black
.
withOpacity
(
0.4
),
color:
const
Color
.
fromRGBO
(
0
,
0
,
0
,
0.4
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
...
...
example/lib/barcode_scanner_simple.dart
View file @
f025852
...
...
@@ -50,7 +50,7 @@ class _BarcodeScannerSimpleState extends State<BarcodeScannerSimple> {
child:
Container
(
alignment:
Alignment
.
bottomCenter
,
height:
100
,
color:
Colors
.
black
.
withOpacity
(
0.4
),
color:
const
Color
.
fromRGBO
(
0
,
0
,
0
,
0.4
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
...
...
example/lib/barcode_scanner_window.dart
View file @
f025852
...
...
@@ -108,7 +108,7 @@ class _BarcodeScannerWithScanWindowState
alignment:
Alignment
.
center
,
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
16
,
vertical:
8
),
height:
100
,
color:
Colors
.
black
.
withOpacity
(
0.4
),
color:
const
Color
.
fromRGBO
(
0
,
0
,
0
,
0.4
),
child:
ScannedBarcodeLabel
(
barcodes:
controller
.
barcodes
),
),
),
...
...
@@ -137,7 +137,7 @@ class ScannerOverlay extends CustomPainter {
final
cutoutPath
=
Path
()..
addRect
(
scanWindow
);
final
backgroundPaint
=
Paint
()
..
color
=
Colors
.
black
.
withOpacity
(
0.5
)
..
color
=
const
Color
.
fromRGBO
(
0
,
0
,
0
,
0.5
)
..
style
=
PaintingStyle
.
fill
..
blendMode
=
BlendMode
.
dstOver
;
...
...
@@ -214,7 +214,7 @@ class BarcodeOverlay extends CustomPainter {
final
cutoutPath
=
Path
()..
addPolygon
(
adjustedOffset
,
true
);
final
backgroundPaint
=
Paint
()
..
color
=
Colors
.
red
.
withOpacity
(
0.3
)
..
color
=
const
Color
(
0x4DF44336
)
..
style
=
PaintingStyle
.
fill
..
blendMode
=
BlendMode
.
dstOut
;
...
...
example/lib/barcode_scanner_zoom.dart
View file @
f025852
...
...
@@ -86,7 +86,7 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom> {
child:
Container
(
alignment:
Alignment
.
bottomCenter
,
height:
100
,
color:
Colors
.
black
.
withOpacity
(
0.4
),
color:
const
Color
.
fromRGBO
(
0
,
0
,
0
,
0.4
),
child:
Column
(
children:
[
if
(!
kIsWeb
)
_buildZoomScaleSlider
(),
...
...
example/lib/mobile_scanner_overlay.dart
View file @
f025852
...
...
@@ -118,7 +118,7 @@ class ScannerOverlay extends CustomPainter {
);
final
backgroundPaint
=
Paint
()
..
color
=
Colors
.
black
.
withOpacity
(
0.5
)
..
color
=
const
Color
.
fromRGBO
(
0
,
0
,
0
,
0.5
)
..
style
=
PaintingStyle
.
fill
..
blendMode
=
BlendMode
.
dstOver
;
...
...
example/lib/scanner_error_widget.dart
View file @
f025852
...
...
@@ -19,7 +19,6 @@ class ScannerErrorWidget extends StatelessWidget {
errorMessage
=
'Scanning is unsupported on this device'
;
default
:
errorMessage
=
'Generic Error'
;
break
;
}
return
ColoredBox
(
...
...
Please
register
or
login
to post a comment