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