null safety
This commit is contained in:
@@ -171,7 +171,7 @@ class PartSearchDelegate extends SearchDelegate<Carton> {
|
||||
// }
|
||||
|
||||
try {
|
||||
String barcode = await scanBarcode();
|
||||
String? barcode = await scanBarcode();
|
||||
if (barcode != null) {
|
||||
query = barcode;
|
||||
showResults(context);
|
||||
|
||||
Reference in New Issue
Block a user