Skip to content

Commit

Permalink
Fix query param
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernPetersen committed Oct 9, 2024
1 parent 1cb9d7d commit b2ddbaa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class _QrScannerState extends State<QrScanner> {
final uri = _extractUri(barcode);
if (uri != null && uri.authority == 'bembel.party') {
final code = uri.queryParameters['code'];
final wheelId = uri.queryParameters['wheelId'];
final wheelId = uri.queryParameters['wheelID'];
if (code != null && wheelId != null) {
return ScanQrEvent(code: code, wheelId: wheelId);
}
Expand All @@ -229,9 +229,10 @@ class _QrScannerState extends State<QrScanner> {
},
errorBuilder: (context, error, widget) {
return Center(
child: Text(
'Error ${error.errorCode}: ${error.errorDetails?.message}',
));
child: Text(
'Error ${error.errorCode}: ${error.errorDetails?.message}',
),
);
},
controller: _controller,
);
Expand Down

0 comments on commit b2ddbaa

Please sign in to comment.