null safety
This commit is contained in:
@@ -147,7 +147,7 @@ class PackageSearchDelegate extends SearchDelegate<Package> {
|
||||
// Barcode bc = barcodes.firstWhere((element) => true);
|
||||
// String barcode;
|
||||
// if (bc != null) barcode = bc.rawValue;
|
||||
String barcode = await scanBarcode();
|
||||
String? barcode = await scanBarcode();
|
||||
if (barcode != null) {
|
||||
query = barcode;
|
||||
showResults(context);
|
||||
|
||||
Reference in New Issue
Block a user