remove prints
parent
ebc5776e78
commit
597fe9224c
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue