remove prints

main
Julian Gegner 2023-03-06 19:04:49 +01:00
parent ebc5776e78
commit 597fe9224c
1 changed files with 0 additions and 3 deletions

View File

@ -17,7 +17,6 @@ class MyScanner extends StatelessWidget {
SettingsProvider settingsProvider = context.watch<SettingsProvider>(); SettingsProvider settingsProvider = context.watch<SettingsProvider>();
void handleSuccess(String? rawValue) { void handleSuccess(String? rawValue) {
print('in Success: $rawValue');
String qrText = rawValue!; String qrText = rawValue!;
Map<String, dynamic> json = stringToJSON(qrText); Map<String, dynamic> json = stringToJSON(qrText);
Settings settings = Settings.fromJson(json); Settings settings = Settings.fromJson(json);
@ -50,12 +49,10 @@ class MyScanner extends StatelessWidget {
final List<Barcode> barcodes = capture.barcodes; final List<Barcode> barcodes = capture.barcodes;
for (final barcode in barcodes) { for (final barcode in barcodes) {
if (barcode.rawValue != null) { if (barcode.rawValue != null) {
print(barcode.rawValue);
return handleSuccess(barcode.rawValue); return handleSuccess(barcode.rawValue);
} }
} }
} catch (e) { } catch (e) {
print(e);
handleError(); handleError();
} }
} }